abc.aspectj.ast
Class TPENot_c

java.lang.Object
  extended by Node_c
      extended by abc.aspectj.ast.TypePatternExpr_c
          extended by abc.aspectj.ast.TPENot_c
All Implemented Interfaces:
TPENot, TypePatternExpr

public class TPENot_c
extends TypePatternExpr_c
implements TPENot

negation of a type pattern expression.

Author:
Oege de Moor, Aske Simon Christensen

Field Summary
protected  TypePatternExpr tpe
           
 
Constructor Summary
TPENot_c(Position pos, TypePatternExpr tpe)
           
 
Method Summary
 boolean equivalent(TypePatternExpr t)
           
 TypePatternExpr getTpe()
           
 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  TPENot_c reconstruct(TypePatternExpr tpe)
           
 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

tpe

protected TypePatternExpr tpe
Constructor Detail

TPENot_c

public TPENot_c(Position pos,
                TypePatternExpr tpe)
Method Detail

getTpe

public TypePatternExpr getTpe()
Specified by:
getTpe in interface TPENot

reconstruct

protected TPENot_c reconstruct(TypePatternExpr tpe)

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