Package bridge
Annotation Interface Bridge
An annotation for creating field & method 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.Bridges.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.Unchecked.class}
-
signature
String signatureSpecifies generic type data- Returns:
- Signature String
- Default:
- ""
-
returns
Class<?> returnsSpecifies a different field/return type- Returns:
- Return Type
- Default:
- bridge.Bridges.class
-
status
Deprecated statusSpecifies that this bridge is@Deprecated
- Returns:
- Deprecation Status
- Default:
- @java.lang.Deprecated
-