public class AnyTypePattern extends TypePattern
TypePattern.MatchKind
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
end, sourceContext, start
Constructor and Description |
---|
AnyTypePattern()
Constructor for EllipsisTypePattern.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(PatternNodeVisitor visitor,
java.lang.Object data) |
protected boolean |
couldEverMatchSameTypesAs(TypePattern other) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isStar() |
protected boolean |
matchesExactly(ResolvedType type) |
protected boolean |
matchesExactly(ResolvedType type,
ResolvedType annotatedType) |
FuzzyBoolean |
matchesInstanceof(ResolvedType type) |
protected boolean |
matchesSubtypes(ResolvedType type) |
TypePattern |
parameterizeWith(java.util.Map<java.lang.String,UnresolvedType> arg0,
World w)
return a version of this type pattern in which all type variable references have been replaced by their corresponding entry
in the map.
|
java.lang.String |
toString() |
void |
write(CompressingDataOutputStream s) |
getAnnotationPattern, getExactType, getTypeParameters, hasFailedResolution, isArray, isBangVoid, isEllipsis, isIncludeSubtypes, isStarAnnotation, isVarArgs, isVoid, matches, matchesStatically, matchesSubtypes, notExactType, postRead, read, remapAdviceFormals, resolve, resolveBindings, resolveExactType, setAnnotationTypePattern, setIsVarArgs, setTypeParameters
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocation
public AnyTypePattern()
includeSubtypes
- protected boolean couldEverMatchSameTypesAs(TypePattern other)
couldEverMatchSameTypesAs
in class TypePattern
protected boolean matchesExactly(ResolvedType type)
matchesExactly
in class TypePattern
org.aspectj.weaver.patterns.TypePattern#matchesExactly(IType)
protected boolean matchesExactly(ResolvedType type, ResolvedType annotatedType)
matchesExactly
in class TypePattern
public FuzzyBoolean matchesInstanceof(ResolvedType type)
matchesInstanceof
in class TypePattern
org.aspectj.weaver.patterns.TypePattern#matchesInstanceof(IType)
public void write(CompressingDataOutputStream s) throws java.io.IOException
write
in class PatternNode
java.io.IOException
protected boolean matchesSubtypes(ResolvedType type)
matchesSubtypes
in class TypePattern
org.aspectj.weaver.patterns.TypePattern#matchesSubtypes(IType)
public boolean isStar()
isStar
in class TypePattern
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object accept(PatternNodeVisitor visitor, java.lang.Object data)
accept
in class PatternNode
public TypePattern parameterizeWith(java.util.Map<java.lang.String,UnresolvedType> arg0, World w)
TypePattern
parameterizeWith
in class TypePattern