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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TypeVariablePattern
public TypeVariablePattern(java.lang.String variableName)
- Create a named type variable with upper bound Object and no lower bounds. Use this constructor for the simple "T" case
TypeVariablePattern
public TypeVariablePattern(java.lang.String variableName,
TypePattern upperBound)
- Create a named type variable with the given upper bound and no lower bounds Use this constructor for the T extends Foo case
- Parameters:
variableName
- upperBound
-
TypeVariablePattern
public TypeVariablePattern(java.lang.String variableName,
TypePattern upperLimit,
TypePattern[] interfaceBounds,
TypePattern lowerBound)
accept
public java.lang.Object accept(PatternNodeVisitor visitor,
java.lang.Object data)
- Specified by:
accept
in class PatternNode
getName
public java.lang.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()
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
write
public void write(CompressingDataOutputStream s)
throws java.io.IOException
- Specified by:
write
in class PatternNode
- Throws:
java.io.IOException
read
public static TypeVariablePattern read(VersionedDataInputStream s,
ISourceContext context)
throws java.io.IOException
- Throws:
java.io.IOException