Package bridge
Annotation Interface Bridge
An annotation for creating field & method bridges
- Notes:
- Usages of this annotation are counted as
bridges
.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionint
Specifies different access modifiersSpecifies different checked exceptionsint
Specifies when to start loading arguments from the bridge methodint
Specifies how many parameters from the bridge method to send to the @annotated methodSpecifies a different field/method nameClass<?>[]
Specifies different method parametersClass<?>
Specifies a different field/return typeSpecifies generic type dataSpecifies that this bridge is@Deprecated
int
Specifies when to start inserting arguments into the @annotated method -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
final
access modifier for field & method bridgingstatic final int
private
access modifier for field & method bridgingstatic final int
protected
access modifier for field & method bridgingstatic final int
public
access modifier for field & method bridgingstatic final int
static
access modifier for field & method bridgingstatic final int
synthetic
access modifier for field & method bridgingstatic final int
transient
access modifier for field bridgingstatic final int
varargs
access modifier for method bridging
-
Field Details
-
PUBLIC
static final int PUBLICpublic
access modifier for field & method bridging- See Also:
-
PROTECTED
static final int PROTECTEDprotected
access modifier for field & method bridging- See Also:
-
PRIVATE
static final int PRIVATEprivate
access modifier for field & method bridging- See Also:
-
STATIC
static final int STATICstatic
access modifier for field & method bridging- See Also:
- Notes:
- This flag cannot be added to fields or methods where it does not already exist
-
FINAL
static final int FINALfinal
access modifier for field & method bridging- See Also:
-
SYNTHETIC
static final int SYNTHETICsynthetic
access modifier for field & method bridging- See Also:
- Notes:
- This flag is applied by default to all bridges.
-
TRANSIENT
static final int TRANSIENTtransient
access modifier for field bridging- See Also:
- Notes:
- This flag is applied by default to field bridges.
-
VARARGS
static final int VARARGSvarargs
access modifier for method bridging- See Also:
-
-
Element Details
-
access
int accessSpecifies different access modifiers- Returns:
- Access modifiers
- Notes:
- Specify an inverted (negative) value to remove existing modifiers using bit-masking
- Default:
- -1
-
name
String nameSpecifies a different field/method name- Returns:
- Name
- Default:
- ""
-
params
Class<?>[] paramsSpecifies different method parameters- Returns:
- Parameters
- Notes:
- The position of parameters in the bridge must be the same as those in the @annotated method
- Default:
- {bridge.Polymorphic.class}
-
fromIndex
int fromIndexSpecifies when to start loading arguments from the bridge method- Returns:
- From index
- Default:
- 0
-
toIndex
int toIndexSpecifies when to start inserting arguments into the @annotated method- Returns:
- To index
- Default:
- 0
-
length
int lengthSpecifies how many parameters from the bridge method to send to the @annotated method- Returns:
- Parameter amount
- Default:
- 2147483647
-
exceptions
Specifies different checked exceptions- Returns:
- Checked exception list
- Default:
- {bridge.AccessError.class}
-
signature
String signatureSpecifies generic type data- Returns:
- Signature string
- Default:
- ""
-
returns
Class<?> returnsSpecifies a different field/return type- Returns:
- Return type
- Default:
- bridge.Polymorphic.class
-
status
Deprecated statusSpecifies that this bridge is@Deprecated
- Returns:
- Deprecation status
- Default:
- @java.lang.Deprecated
-