abc.ra.ast
Class AdviceSymbolDeclaration_c

java.lang.Object
  extended by Node_c
      extended by abc.tm.ast.SymbolDecl_c
          extended by abc.ra.ast.AdviceSymbolDeclaration_c
All Implemented Interfaces:
SymbolDecl

public class AdviceSymbolDeclaration_c
extends SymbolDecl_c

Symbol declaraton of a symbol generated from an advice. If this symbol never matches, it gives a warning that the advice (instead of symbol) never matches.

Author:
Eric Bodden

Field Summary
protected  boolean giveWarning
           
 
Fields inherited from class abc.tm.ast.SymbolDecl_c
kind, name, pc
 
Constructor Summary
AdviceSymbolDeclaration_c(Position pos, java.lang.String name, SymbolKind kind, Pointcut pc, boolean giveWarning)
           
 
Method Summary
 AdviceDecl generateSymbolAdvice(TMNodeFactory nf, java.util.List formals, TypeNode voidn, java.lang.String tm_id, Position tm_pos)
           
 
Methods inherited from class abc.tm.ast.SymbolDecl_c
aroundVars, binds, body, enterScope, generateClosedPointcut, getPointcut, getSymbolKind, kind, name, reconstruct, typeCheck, visitChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

giveWarning

protected final boolean giveWarning
Constructor Detail

AdviceSymbolDeclaration_c

public AdviceSymbolDeclaration_c(Position pos,
                                 java.lang.String name,
                                 SymbolKind kind,
                                 Pointcut pc,
                                 boolean giveWarning)
Parameters:
giveWarning - if true, the warning is given, if false not
Method Detail

generateSymbolAdvice

public AdviceDecl generateSymbolAdvice(TMNodeFactory nf,
                                       java.util.List formals,
                                       TypeNode voidn,
                                       java.lang.String tm_id,
                                       Position tm_pos)
Specified by:
generateSymbolAdvice in interface SymbolDecl
Overrides:
generateSymbolAdvice in class SymbolDecl_c