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 final byte
static final AnnotationTypePattern
static final byte
static final byte
static final byte
static final byte
static final AnnotationTypePattern
static final byte
static final byte
static final byte
static final AnnotationTypePattern[]
static final byte
static final byte
static final 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:
-
BINDING
public static final byte BINDING- See Also:
-
NOT
public static final byte NOT- See Also:
-
OR
public static final byte OR- See Also:
-
AND
public static final byte AND- See Also:
-
ELLIPSIS_KEY
public static final byte ELLIPSIS_KEY- See Also:
-
ANY_KEY
public static final byte ANY_KEY- See Also:
-
WILD
public static final byte WILD- See Also:
-
EXACTFIELD
public static final byte EXACTFIELD- See Also:
-
BINDINGFIELD
public static final byte BINDINGFIELD- See Also:
-
BINDINGFIELD2
public static final byte BINDINGFIELD2- See Also:
-
-
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
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()
-