Package ej.basictool.annotation
Annotation Type Extend
-
@Target(METHOD) @Retention(RUNTIME) public @interface Extend
Annotation used to extend an existing class with new methods.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanisStaticDeclares whether the annotated method should remainstaticor not.
-
-
-
Element Detail
-
className
String className
The name of the class to extend.
-
-
-
isStatic
boolean isStatic
Declares whether the annotated method should remainstaticor not.When not set, or
false, the method will be injected in target class as an instance method (i.e. not static) and its first argument will be removed and used as receiver.- Returns:
trueif the extended method is static,falseotherwise
- Default:
- false
-
-