Package org.aspectj.weaver.patterns
Class TypeVariablePattern
- java.lang.Object
-
- org.aspectj.weaver.patterns.PatternNode
-
- org.aspectj.weaver.patterns.TypeVariablePattern
-
- All Implemented Interfaces:
IHasPosition,IHasSourceLocation
public class TypeVariablePattern extends PatternNode
-
-
Field Summary
-
Fields inherited from class org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start
-
-
Constructor Summary
Constructors Constructor Description TypeVariablePattern(String variableName)TypeVariablePattern(String variableName, TypePattern upperBound)TypeVariablePattern(String variableName, TypePattern upperLimit, TypePattern[] interfaceBounds, TypePattern lowerBound)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(PatternNodeVisitor visitor, Object data)booleanequals(Object obj)TypePattern[]getAdditionalInterfaceBounds()TypePatterngetLowerBound()StringgetName()TypePatterngetRawTypePattern()TypePatterngetUpperBound()booleanhasAdditionalInterfaceBounds()inthashCode()booleanhasLowerBound()booleanisAnythingPattern()static TypeVariablePatternread(VersionedDataInputStream s, ISourceContext context)StringtoString()voidwrite(CompressingDataOutputStream s)-
Methods inherited from class org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocation
-
-
-
-
Constructor Detail
-
TypeVariablePattern
public TypeVariablePattern(String variableName)
-
TypeVariablePattern
public TypeVariablePattern(String variableName, TypePattern upperBound)
-
TypeVariablePattern
public TypeVariablePattern(String variableName, TypePattern upperLimit, TypePattern[] interfaceBounds, TypePattern lowerBound)
-
-
Method Detail
-
accept
public Object accept(PatternNodeVisitor visitor, Object data)
- Specified by:
acceptin classPatternNode
-
getName
public String getName()
-
isAnythingPattern
public boolean isAnythingPattern()
-
getRawTypePattern
public TypePattern getRawTypePattern()
-
getUpperBound
public TypePattern getUpperBound()
-
hasLowerBound
public boolean hasLowerBound()
-
getLowerBound
public TypePattern getLowerBound()
-
hasAdditionalInterfaceBounds
public boolean hasAdditionalInterfaceBounds()
-
getAdditionalInterfaceBounds
public TypePattern[] getAdditionalInterfaceBounds()
-
write
public void write(CompressingDataOutputStream s) throws IOException
- Specified by:
writein classPatternNode- Throws:
IOException
-
read
public static TypeVariablePattern read(VersionedDataInputStream s, ISourceContext context) throws IOException
- Throws:
IOException
-
-