abc.aspectj.ast
Class RTPName_c

java.lang.Object
  extended by Node_c
      extended by abc.aspectj.ast.RTPName_c
All Implemented Interfaces:
RefTypePattern, RTPName, ContainsNamePattern

public class RTPName_c
extends Node_c
implements RTPName, ContainsNamePattern

Author:
Oege de Moor, Aske Simon Christensen

Field Summary
protected  NamePattern pat
           
 
Constructor Summary
RTPName_c(Position pos, NamePattern pat)
           
 
Method Summary
 boolean equivalent(RefTypePattern p)
           
 NamePattern getNamePattern()
           
 boolean matchesArray(PatternMatcher matcher)
           
 boolean matchesClass(PatternMatcher matcher, PCNode cl)
           
 void prettyPrint(CodeWriter w, PrettyPrinter tr)
           
protected  RTPName_c reconstruct(NamePattern pat)
          Reconstruct the pointcut call.
 java.lang.String toString()
           
 ClassnamePatternExpr transformToClassnamePattern(AJNodeFactory nf)
           
 Node visitChildren(NodeVisitor v)
          Visit the children of the pointcut call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pat

protected NamePattern pat
Constructor Detail

RTPName_c

public RTPName_c(Position pos,
                 NamePattern pat)
Method Detail

reconstruct

protected RTPName_c reconstruct(NamePattern pat)
Reconstruct the pointcut call.


visitChildren

public Node visitChildren(NodeVisitor v)
Visit the children of the pointcut call.


prettyPrint

public void prettyPrint(CodeWriter w,
                        PrettyPrinter tr)

toString

public java.lang.String toString()

getNamePattern

public NamePattern getNamePattern()
Specified by:
getNamePattern in interface RTPName
Specified by:
getNamePattern in interface ContainsNamePattern

matchesClass

public boolean matchesClass(PatternMatcher matcher,
                            PCNode cl)
Specified by:
matchesClass in interface RefTypePattern

matchesArray

public boolean matchesArray(PatternMatcher matcher)
Specified by:
matchesArray in interface RefTypePattern

transformToClassnamePattern

public ClassnamePatternExpr transformToClassnamePattern(AJNodeFactory nf)
                                                 throws SemanticException
Specified by:
transformToClassnamePattern in interface RefTypePattern
Throws:
SemanticException

equivalent

public boolean equivalent(RefTypePattern p)
Specified by:
equivalent in interface RefTypePattern