Package com.exedio.cope.instrument
Annotation Type Wrapper
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Makes the generated wrapper methodfinal
.boolean
boolean
Appends "Internal" to the name of the generated wrapper method.boolean
Annotates the generated wrapper method with @Override
.Class<?>[]
Overrides the visibility of the generated wrapper method. -
Field Summary
Fields
-
Field Details
-
ALL_WRAPS
- See Also:
-
-
Element Details
-
-
parameters
Class<?>[] parametersIf several wrapper methods with the samewrap()
get generated, but yourWrapper
annotation should only affect one of them, it can be restricted by setting this field to the parameter list of the method.- Default:
- {com.exedio.cope.instrument.WrapperParametersDefault.class}
-
visibility
Visibility visibilityOverrides the visibility of the generated wrapper method. The visibilitydefaults
to the visibility of the feature, unlessinternal
is set.- Default:
- DEFAULT
-
internal
boolean internalAppends "Internal" to the name of the generated wrapper method. So for instancegetName
becomesgetNameInternal
. Additionally changes the visibility toprivate
, ifvisibility
is set toDEFAULT
.This is typically needed if you want to provide your own implementation of the generated method, but you still want to call the generated code.
- Default:
- false
-
booleanAsIs
boolean booleanAsIs- Default:
- false
-
asFinal
boolean asFinalMakes the generated wrapper methodfinal
.- Default:
- true
-
override
boolean overrideAnnotates the generated wrapper method with @Override
.- Default:
- false
-