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
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final AnnotationTypePatternstatic final bytestatic final bytestatic final bytestatic final bytestatic final AnnotationTypePatternstatic final bytestatic final bytestatic final bytestatic final AnnotationTypePattern[]static final bytestatic final bytestatic final byteFields inherited from class PatternNode
end, sourceContext, start -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTODO: write, read, equals & hashCode both in annotation hierarchy and in altered TypePattern hierarchy -
Method Summary
Modifier and TypeMethodDescriptionfastMatches(AnnotatedElement annotated) booleanisAny()booleanabstract FuzzyBooleanmatches(AnnotatedElement annotated) abstract FuzzyBooleanmatches(AnnotatedElement annotated, ResolvedType[] parameterAnnotations) abstract AnnotationTypePatternparameterizeWith(Map<String, UnresolvedType> typeVariableMap, World w) static AnnotationTypePatternread(VersionedDataInputStream s, ISourceContext context) remapAdviceFormals(IntMap bindings) abstract voidresolveBindings(IScope scope, Bindings bindings, boolean allowBinding) This can modify in place, or return a new TypePattern if the type changes.voidMethods inherited from class PatternNode
accept, copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, write, writeLocationModifier and TypeMethodDescriptionabstract Objectaccept(PatternNodeVisitor visitor, Object data) voidcopyLocationFrom(PatternNode other) intgetEnd()The ending index of this location in the character stream This points to the last character in this token.intgetStart()The starting index of this location in the character stream.voidreadLocation(ISourceContext context, DataInputStream s) voidsetLocation(ISourceContext sourceContext, int start, int end) traverse(PatternNodeVisitor visitor, Object data) abstract voidvoid
-
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()
-