abc.aspectj.ast
Class TPEType_c
java.lang.Object
Node_c
abc.aspectj.ast.TypePatternExpr_c
abc.aspectj.ast.TPEType_c
- All Implemented Interfaces:
- TPEType, TypePatternExpr
public class TPEType_c
- extends TypePatternExpr_c
- implements TPEType
- Author:
- Oege de Moor, Aske Simon Christensen
Field Summary |
protected TypeNode |
type
|
Constructor Summary |
TPEType_c(Position pos,
TypeNode type)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
type
protected TypeNode type
TPEType_c
public TPEType_c(Position pos,
TypeNode type)
type
public TypeNode type()
- Specified by:
type
in interface TPEType
precedence
public Precedence precedence()
- Specified by:
precedence
in interface TypePatternExpr
- Overrides:
precedence
in class TypePatternExpr_c
reconstruct
protected TPEType_c reconstruct(TypeNode type)
- Reconstruct the type pattern
visitChildren
public Node visitChildren(NodeVisitor v)
- Visit the children of the type pattern.
prettyPrint
public void prettyPrint(CodeWriter w,
PrettyPrinter tr)
toString
public java.lang.String toString()
matchesClass
public boolean matchesClass(PatternMatcher matcher,
PCNode cl)
- Specified by:
matchesClass
in interface TypePatternExpr
matchesClassArray
public boolean matchesClassArray(PatternMatcher matcher,
PCNode cl,
int dim)
- Specified by:
matchesClassArray
in interface TypePatternExpr
matchesPrimitive
public boolean matchesPrimitive(PatternMatcher matcher,
java.lang.String prim)
- Specified by:
matchesPrimitive
in interface TypePatternExpr
matchesPrimitiveArray
public boolean matchesPrimitiveArray(PatternMatcher matcher,
java.lang.String prim,
int dim)
- Specified by:
matchesPrimitiveArray
in interface TypePatternExpr
transformToClassnamePattern
public ClassnamePatternExpr transformToClassnamePattern(AJNodeFactory nf)
throws SemanticException
- Specified by:
transformToClassnamePattern
in interface TypePatternExpr
- Throws:
SemanticException
equivalent
public boolean equivalent(TypePatternExpr t)
- Specified by:
equivalent
in interface TypePatternExpr