Package com.exedio.cope.instrument
Annotation Type Wrapper
-
@Repeatable(WrapperRepeated.class) @Target(FIELD) @Retention(SOURCE) public @interface Wrapper
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
asFinal
Makes the generated wrapper methodfinal
.boolean
booleanAsIs
boolean
internal
Appends "Internal" to the name of the generated wrapper method.boolean
override
Annotates the generated wrapper method with @Override
.Class<?>[]
parameters
Visibility
visibility
Overrides the visibility of the generated wrapper method.
-
-
-
Field Detail
-
ALL_WRAPS
static final String ALL_WRAPS
-
-
-
parameters
Class<?>[] parameters
If 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 visibility
Overrides the visibility of the generated wrapper method. The visibilitydefaults
to the visibility of the feature, unlessinternal
is set.- Default:
- com.exedio.cope.instrument.Visibility.DEFAULT
-
-
-
internal
boolean internal
Appends "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
-
-
-
override
boolean override
Annotates the generated wrapper method with @Override
.- Default:
- false
-
-