Package org.aspectj.weaver.patterns
Class TypePatternList
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.TypePatternList
- All Implemented Interfaces:
IHasPosition,IHasSourceLocation
-
Field Summary
FieldsFields inherited from class org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(PatternNodeVisitor visitor, Object data)booleanbooleancanMatchSignatureWithNParameters(int numParams)booleanget(int index)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.inthashCode()matches(ResolvableTypeList types, TypePattern.MatchKind kind, ResolvedType[][] parameterAnnotations)matches(ResolvedType[] types, TypePattern.MatchKind kind)matches(ResolvedType[] types, TypePattern.MatchKind kind, ResolvedType[][] parameterAnnotations)When called with TypePattern.STATIC this will always return either FuzzyBoolean.YES or FuzzyBoolean.NO.String[]parameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w)Return a version of this type pattern list in which all type variable references are replaced by their corresponding entry in the mapvoidpostRead(ResolvedType enclosingType)static TypePatternListread(VersionedDataInputStream s, ISourceContext context)resolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType)resolveReferences(IntMap bindings)intsize()toString()traverse(PatternNodeVisitor visitor, Object data)voidMethods inherited from class org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getFileName, readLocation, setLocation, writeLocation
-
Field Details
-
EMPTY
-
ANY
-
-
Constructor Details
-
TypePatternList
public TypePatternList() -
TypePatternList
-
TypePatternList
-
-
Method Details
-
size
public int size() -
get
-
toString
-
canMatchSignatureWithNParameters
public boolean canMatchSignatureWithNParameters(int numParams) -
matches
-
matches
public FuzzyBoolean matches(ResolvedType[] types, TypePattern.MatchKind kind, ResolvedType[][] parameterAnnotations)When called with TypePattern.STATIC this will always return either FuzzyBoolean.YES or FuzzyBoolean.NO. When called with TypePattern.DYNAMIC this could return MAYBE if at runtime it would be possible for arguments of the given static types to dynamically match this, but it is not known for certain. This method will never return FuzzyBoolean.NEVER -
matches
public FuzzyBoolean matches(ResolvableTypeList types, TypePattern.MatchKind kind, ResolvedType[][] parameterAnnotations) -
parameterizeWith
Return a version of this type pattern list in which all type variable references are replaced by their corresponding entry in the map- Parameters:
typeVariableMap-- Returns:
-
resolveBindings
public TypePatternList resolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType) -
resolveReferences
-
postRead
-
equals
-
hashCode
public int hashCode() -
read
public static TypePatternList read(VersionedDataInputStream s, ISourceContext context) throws IOException- Throws:
IOException
-
getEnd
public int getEnd()Description copied from interface:IHasPositionThe ending index of this location in the character stream This points to the last character in this token. If a location truly had no contents, then start == end + 1. We don't recommend this.- Specified by:
getEndin interfaceIHasPosition- Overrides:
getEndin classPatternNode
-
getSourceContext
- Specified by:
getSourceContextin interfaceIHasSourceLocation- Overrides:
getSourceContextin classPatternNode
-
getSourceLocation
- Specified by:
getSourceLocationin interfaceIHasSourceLocation- Overrides:
getSourceLocationin classPatternNode
-
getStart
public int getStart()Description copied from interface:IHasPositionThe starting index of this location in the character stream.- Specified by:
getStartin interfaceIHasPosition- Overrides:
getStartin classPatternNode
-
write
- Specified by:
writein classPatternNode- Throws:
IOException
-
getTypePatterns
-
getExactTypes
-
accept
- Specified by:
acceptin classPatternNode
-
traverse
- Overrides:
traversein classPatternNode
-
areAllExactWithNoSubtypesAllowed
public boolean areAllExactWithNoSubtypesAllowed() -
maybeGetCleanNames
-