abc.aspectj.ast
Class RTPSubName_c

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

public class RTPSubName_c
extends Node_c
implements RTPSubName, ContainsNamePattern

A reference type pattern that matches all subclasses (..)+

Author:
Oege de Moor, Aske Simon Christensen

Field Summary
protected  NamePattern pat
           
 
Constructor Summary
RTPSubName_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  RTPSubName_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

RTPSubName_c

public RTPSubName_c(Position pos,
                    NamePattern pat)
Method Detail

reconstruct

protected RTPSubName_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 RTPSubName
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