Package org.aspectj.weaver.patterns
Class AnyWithAnnotationTypePattern
- java.lang.Object
-
- org.aspectj.weaver.patterns.PatternNode
-
- org.aspectj.weaver.patterns.TypePattern
-
- org.aspectj.weaver.patterns.AnyWithAnnotationTypePattern
-
- All Implemented Interfaces:
IHasPosition,IHasSourceLocation
public class AnyWithAnnotationTypePattern extends TypePattern
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.aspectj.weaver.patterns.TypePattern
TypePattern.MatchKind
-
-
Field Summary
-
Fields inherited from class org.aspectj.weaver.patterns.TypePattern
AND, annotationPattern, ANY, ANY_KEY, ANY_WITH_ANNO, BINDING, DYNAMIC, ELLIPSIS, ELLIPSIS_KEY, EXACT, HAS_MEMBER, includeSubtypes, isVarArgs, NO, NO_KEY, NOT, OR, STATIC, TYPE_CATEGORY, typeParameters, WILD
-
Fields inherited from class org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start
-
-
Constructor Summary
Constructors Constructor Description AnyWithAnnotationTypePattern(AnnotationTypePattern atp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(PatternNodeVisitor visitor, Object data)protected booleancouldEverMatchSameTypesAs(TypePattern other)booleanequals(Object obj)AnnotationTypePatterngetAnnotationTypePattern()inthashCode()booleanisStar()protected booleanmatchesExactly(ResolvedType type)protected booleanmatchesExactly(ResolvedType type, ResolvedType annotatedType)FuzzyBooleanmatchesInstanceof(ResolvedType type)protected booleanmatchesSubtypes(ResolvedType type)TypePatternparameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w)static TypePatternread(VersionedDataInputStream s, ISourceContext c)TypePatternresolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType)StringtoString()voidwrite(CompressingDataOutputStream s)-
Methods inherited from class org.aspectj.weaver.patterns.TypePattern
getAnnotationPattern, getExactType, getTypeParameters, hasFailedResolution, isArray, isBangVoid, isEllipsis, isIncludeSubtypes, isStarAnnotation, isVarArgs, isVoid, matches, matchesStatically, matchesSubtypes, notExactType, postRead, remapAdviceFormals, resolve, resolveExactType, setAnnotationTypePattern, setIsVarArgs, setTypeParameters
-
Methods inherited from class org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocation
-
-
-
-
Constructor Detail
-
AnyWithAnnotationTypePattern
public AnyWithAnnotationTypePattern(AnnotationTypePattern atp)
-
-
Method Detail
-
accept
public Object accept(PatternNodeVisitor visitor, Object data)
- Specified by:
acceptin classPatternNode
-
couldEverMatchSameTypesAs
protected boolean couldEverMatchSameTypesAs(TypePattern other)
- Overrides:
couldEverMatchSameTypesAsin classTypePattern
-
matchesExactly
protected boolean matchesExactly(ResolvedType type)
- Specified by:
matchesExactlyin classTypePattern
-
resolveBindings
public TypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType)
- Overrides:
resolveBindingsin classTypePattern
-
matchesExactly
protected boolean matchesExactly(ResolvedType type, ResolvedType annotatedType)
- Specified by:
matchesExactlyin classTypePattern
-
matchesInstanceof
public FuzzyBoolean matchesInstanceof(ResolvedType type)
- Specified by:
matchesInstanceofin classTypePattern
-
parameterizeWith
public TypePattern parameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w)
- Specified by:
parameterizeWithin classTypePattern
-
write
public void write(CompressingDataOutputStream s) throws IOException
- Specified by:
writein classPatternNode- Throws:
IOException
-
read
public static TypePattern read(VersionedDataInputStream s, ISourceContext c) throws IOException
- Throws:
IOException
-
matchesSubtypes
protected boolean matchesSubtypes(ResolvedType type)
- Overrides:
matchesSubtypesin classTypePattern
-
isStar
public boolean isStar()
- Overrides:
isStarin classTypePattern
-
getAnnotationTypePattern
public AnnotationTypePattern getAnnotationTypePattern()
-
-