abc.aspectj.ast
Class TPEArray_c

java.lang.Object
  extended by Node_c
      extended by abc.aspectj.ast.TypePatternExpr_c
          extended by 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

Field Summary
protected  TypePatternExpr base
           
protected  int dims
           
 
Constructor Summary
TPEArray_c(Position pos, TypePatternExpr base, int dims)
           
 
Method Summary
 TypePatternExpr base()
           
 int dims()
           
 boolean equivalent(TypePatternExpr t)
           
 boolean matchesClass(PatternMatcher matcher, PCNode cl)
           
 boolean matchesClassArray(PatternMatcher matcher, PCNode cl, int dim)
           
 boolean matchesPrimitive(PatternMatcher matcher, java.lang.String prim)
           
 boolean matchesPrimitiveArray(PatternMatcher matcher, java.lang.String prim, int dim)
           
 Precedence precedence()
           
 void prettyPrint(CodeWriter w, PrettyPrinter tr)
           
protected  TPEArray_c reconstruct(TypePatternExpr base)
           
 java.lang.String toString()
           
 ClassnamePatternExpr transformToClassnamePattern(AJNodeFactory nf)
           
 Node visitChildren(NodeVisitor v)
           
 
Methods inherited from class abc.aspectj.ast.TypePatternExpr_c
makeAITypePattern, printSubExpr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface abc.aspectj.ast.TypePatternExpr
makeAITypePattern, printSubExpr
 

Field Detail

base

protected TypePatternExpr base

dims

protected int dims
Constructor Detail

TPEArray_c

public TPEArray_c(Position pos,
                  TypePatternExpr base,
                  int dims)
Method Detail

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