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
public class TypePatternList extends PatternNode
-
-
Field Summary
Fields Modifier and Type Field Description static TypePatternListANYstatic TypePatternListEMPTY-
Fields inherited from class org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start
-
-
Constructor Summary
Constructors Constructor Description TypePatternList()TypePatternList(List<TypePattern> l)TypePatternList(TypePattern[] arguments)
-
Method Summary
-
Methods inherited from class org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getFileName, readLocation, setLocation, writeLocation
-
-
-
-
Field Detail
-
EMPTY
public static final TypePatternList EMPTY
-
ANY
public static final TypePatternList ANY
-
-
Constructor Detail
-
TypePatternList
public TypePatternList()
-
TypePatternList
public TypePatternList(TypePattern[] arguments)
-
TypePatternList
public TypePatternList(List<TypePattern> l)
-
-
Method Detail
-
size
public int size()
-
get
public TypePattern get(int index)
-
canMatchSignatureWithNParameters
public boolean canMatchSignatureWithNParameters(int numParams)
-
matches
public FuzzyBoolean matches(ResolvedType[] types, TypePattern.MatchKind kind)
-
matches
public FuzzyBoolean matches(ResolvedType[] types, TypePattern.MatchKind kind, ResolvedType[][] parameterAnnotations)
-
matches
public FuzzyBoolean matches(ResolvableTypeList types, TypePattern.MatchKind kind, ResolvedType[][] parameterAnnotations)
-
parameterizeWith
public TypePatternList parameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w)
-
resolveBindings
public TypePatternList resolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType)
-
resolveReferences
public TypePatternList resolveReferences(IntMap bindings)
-
postRead
public void postRead(ResolvedType enclosingType)
-
read
public static TypePatternList read(VersionedDataInputStream s, ISourceContext context) throws IOException
- Throws:
IOException
-
getEnd
public int getEnd()
- Specified by:
getEndin interfaceIHasPosition- Overrides:
getEndin classPatternNode
-
getSourceContext
public ISourceContext getSourceContext()
- Specified by:
getSourceContextin interfaceIHasSourceLocation- Overrides:
getSourceContextin classPatternNode
-
getSourceLocation
public ISourceLocation getSourceLocation()
- Specified by:
getSourceLocationin interfaceIHasSourceLocation- Overrides:
getSourceLocationin classPatternNode
-
getStart
public int getStart()
- Specified by:
getStartin interfaceIHasPosition- Overrides:
getStartin classPatternNode
-
write
public void write(CompressingDataOutputStream s) throws IOException
- Specified by:
writein classPatternNode- Throws:
IOException
-
getTypePatterns
public TypePattern[] getTypePatterns()
-
getExactTypes
public List<UnresolvedType> getExactTypes()
-
accept
public Object accept(PatternNodeVisitor visitor, Object data)
- Specified by:
acceptin classPatternNode
-
traverse
public Object traverse(PatternNodeVisitor visitor, Object data)
- Overrides:
traversein classPatternNode
-
areAllExactWithNoSubtypesAllowed
public boolean areAllExactWithNoSubtypesAllowed()
-
maybeGetCleanNames
public String[] maybeGetCleanNames()
-
-