Annotation Interface Definition
Defines an identifier used by an
Expression.
Each identifier can be defined any number of times, either in one Definition or across Definitions.-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]Used to define field identifiers.Local[]Used to define local variable identifiers.String[]Used to define method identifiers.booleanWhether to remap the method and field identifiers in this annotation.Class<?>[]Used to define type identifiers, e.g.
-
Element Details
-
id
String idThe identifier to define.
-
-
-
method
String[] methodUsed to define method identifiers. The formats accepted match those for@At("INVOKE").- Default:
- {}
-
field
String[] fieldUsed to define field identifiers. The formats accepted match those for@At("FIELD").- Default:
- {}
-
type
Class<?>[] typeUsed to define type identifiers, e.g. for instantiations or instanceof checks.- Default:
- {}
-
local
Local[] localUsed to define local variable identifiers. You *must* specify atypein the annotation. The different discriminators have the same behaviour as whenLocalis used as a sugar.- Default:
- {}
-
remap
boolean remapWhether to remap the method and field identifiers in this annotation. The default is inherited from the attached injector.- Default:
- true
-