Package org.aspectj.weaver.patterns
Class AnnotationTypePattern
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.AnnotationTypePattern
- All Implemented Interfaces:
IHasPosition
,IHasSourceLocation
- Direct Known Subclasses:
AndAnnotationTypePattern
,AnyAnnotationTypePattern
,ExactAnnotationTypePattern
,NotAnnotationTypePattern
,OrAnnotationTypePattern
,WildAnnotationTypePattern
-
Field Summary
Modifier and TypeFieldDescriptionstatic byte
static AnnotationTypePattern
static byte
static byte
static byte
static byte
static AnnotationTypePattern
static byte
static byte
static byte
static AnnotationTypePattern[]
static byte
static byte
static byte
Fields inherited from class org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start
-
Constructor Summary
ModifierConstructorDescriptionprotected
TODO: write, read, equals & hashCode both in annotation hierarchy and in altered TypePattern hierarchy -
Method Summary
Modifier and TypeMethodDescriptionfastMatches(AnnotatedElement annotated)
boolean
isAny()
boolean
abstract FuzzyBoolean
matches(AnnotatedElement annotated)
abstract FuzzyBoolean
matches(AnnotatedElement annotated, ResolvedType[] parameterAnnotations)
abstract AnnotationTypePattern
parameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w)
static AnnotationTypePattern
read(VersionedDataInputStream s, ISourceContext context)
remapAdviceFormals(IntMap bindings)
abstract void
resolveBindings(IScope scope, Bindings bindings, boolean allowBinding)
This can modify in place, or return a new TypePattern if the type changes.void
Methods inherited from class org.aspectj.weaver.patterns.PatternNode
accept, copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, write, writeLocation
-
Field Details
-
ANY
-
ELLIPSIS
-
NONE
-
EXACT
public static final byte EXACT- See Also:
- Constant Field Values
-
BINDING
public static final byte BINDING- See Also:
- Constant Field Values
-
NOT
public static final byte NOT- See Also:
- Constant Field Values
-
OR
public static final byte OR- See Also:
- Constant Field Values
-
AND
public static final byte AND- See Also:
- Constant Field Values
-
ELLIPSIS_KEY
public static final byte ELLIPSIS_KEY- See Also:
- Constant Field Values
-
ANY_KEY
public static final byte ANY_KEY- See Also:
- Constant Field Values
-
WILD
public static final byte WILD- See Also:
- Constant Field Values
-
EXACTFIELD
public static final byte EXACTFIELD- See Also:
- Constant Field Values
-
BINDINGFIELD
public static final byte BINDINGFIELD- See Also:
- Constant Field Values
-
BINDINGFIELD2
public static final byte BINDINGFIELD2- See Also:
- Constant Field Values
-
-
Constructor Details
-
AnnotationTypePattern
protected AnnotationTypePattern()TODO: write, read, equals & hashCode both in annotation hierarchy and in altered TypePattern hierarchy
-
-
Method Details
-
matches
-
matches
public abstract FuzzyBoolean matches(AnnotatedElement annotated, ResolvedType[] parameterAnnotations) -
fastMatches
-
remapAdviceFormals
-
resolve
-
parameterizeWith
public abstract AnnotationTypePattern parameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w) -
isAny
public boolean isAny() -
resolveBindings
public AnnotationTypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding)This can modify in place, or return a new TypePattern if the type changes. -
read
public static AnnotationTypePattern read(VersionedDataInputStream s, ISourceContext context) throws IOException- Throws:
IOException
-
setForParameterAnnotationMatch
public void setForParameterAnnotationMatch() -
isForParameterAnnotationMatch
public boolean isForParameterAnnotationMatch()
-