abc.aspectj.ast
Class AdviceSpec_c

java.lang.Object
  extended by Node_c
      extended by abc.aspectj.ast.AdviceSpec_c
All Implemented Interfaces:
AdviceSpec
Direct Known Subclasses:
After_c, AfterReturning_c, AfterThrowing_c, Around_c, Before_c

public abstract class AdviceSpec_c
extends Node_c
implements AdviceSpec

An advice specification states the kind of advice and the formals.

Author:
Oege de Moor, Aske Simon Christensen

Field Summary
protected  java.util.List formals
           
protected  TypeNode returnType
           
protected  AdviceFormal returnVal
           
 
Constructor Summary
AdviceSpec_c(Position pos, java.util.List formals, TypeNode returnType, AdviceFormal returnVal)
           
 
Method Summary
 java.util.List formals()
           
protected  AdviceSpec_c reconstruct(java.util.List formals, TypeNode returnType, AdviceFormal returnVal)
           
 TypeNode returnType()
           
 AdviceFormal returnVal()
           
 void setReturnType(TypeNode rt)
           
 void setReturnVal(AdviceFormal rv)
           
 Node visitChildren(NodeVisitor v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface abc.aspectj.ast.AdviceSpec
kind, makeAIAdviceSpec
 

Field Detail

formals

protected java.util.List formals

returnType

protected TypeNode returnType

returnVal

protected AdviceFormal returnVal
Constructor Detail

AdviceSpec_c

public AdviceSpec_c(Position pos,
                    java.util.List formals,
                    TypeNode returnType,
                    AdviceFormal returnVal)
Method Detail

reconstruct

protected AdviceSpec_c reconstruct(java.util.List formals,
                                   TypeNode returnType,
                                   AdviceFormal returnVal)

visitChildren

public Node visitChildren(NodeVisitor v)

formals

public java.util.List formals()
Specified by:
formals in interface AdviceSpec

returnType

public TypeNode returnType()
Specified by:
returnType in interface AdviceSpec

returnVal

public AdviceFormal returnVal()
Specified by:
returnVal in interface AdviceSpec

setReturnType

public void setReturnType(TypeNode rt)
Specified by:
setReturnType in interface AdviceSpec

setReturnVal

public void setReturnVal(AdviceFormal rv)
Specified by:
setReturnVal in interface AdviceSpec