abc.aspectj.ast
Class TPEType_c

java.lang.Object
  extended by Node_c
      extended by abc.aspectj.ast.TypePatternExpr_c
          extended by 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)
           
 
Method Summary
 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  TPEType_c reconstruct(TypeNode type)
          Reconstruct the type pattern
 java.lang.String toString()
           
 ClassnamePatternExpr transformToClassnamePattern(AJNodeFactory nf)
           
 TypeNode type()
           
 Node visitChildren(NodeVisitor v)
          Visit the children of the type pattern.
 
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

type

protected TypeNode type
Constructor Detail

TPEType_c

public TPEType_c(Position pos,
                 TypeNode type)
Method Detail

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