abc.aspectj.ast
Class TPEArray_c
java.lang.Object
Node_c
abc.aspectj.ast.TypePatternExpr_c
abc.aspectj.ast.TPEArray_c
- All Implemented Interfaces:
- TPEArray, TypePatternExpr
public class TPEArray_c
- extends TypePatternExpr_c
- implements TPEArray
A type pattern expression for array types.
- Author:
- Oege de Moor, Aske Simon Christensen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
base
protected TypePatternExpr base
dims
protected int dims
TPEArray_c
public TPEArray_c(Position pos,
TypePatternExpr base,
int dims)
base
public TypePatternExpr base()
- Specified by:
base
in interface TPEArray
dims
public int dims()
- Specified by:
dims
in interface TPEArray
reconstruct
protected TPEArray_c reconstruct(TypePatternExpr base)
visitChildren
public Node visitChildren(NodeVisitor v)
precedence
public Precedence precedence()
- Specified by:
precedence
in interface TypePatternExpr
- Overrides:
precedence
in class TypePatternExpr_c
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