|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object abc.weaving.aspectinfo.Syntax abc.weaving.aspectinfo.InAspect abc.weaving.aspectinfo.IntertypeConstructorDecl
public class IntertypeConstructorDecl
An intertype constructor declaration. given an intertype constructor declaration of the form mods A.new(formal1, ...,formaln) { ccall(E1,E2,...,Ek); // optional call to super or this init; } the frontend transforms it into the following shape mods A.new(formal1, ..., formaln) { qualifier.ccall(e1(this,formal1,...,formaln), ..., ek(this,formal1,...,formaln)); // no longer optional body(this,formal1,...,formaln); } where e1,...,ek and body are newly generated methods in the originating aspect. The class below encodes the latter scheme, for code generation in the target class.
Field Summary | |
---|---|
static int |
SUPER
|
static int |
THIS
|
Constructor Summary | |
---|---|
IntertypeConstructorDecl(AbcClass target,
Aspect aspct,
int mod,
int origmod,
boolean hasMangleParam,
java.util.List formalTypes,
java.util.List throwTypes,
AbcClass qualifier,
int kind,
java.util.List arguments,
MethodSig body,
Position pos)
|
Method Summary | |
---|---|
java.util.List |
getArguments()
|
MethodSig |
getBody()
|
java.util.List |
getExceptions()
Get the exceptions thrown by the method. |
java.util.List |
getFormalTypes()
Get the formal types of the intertype constructor. |
int |
getKind()
|
int |
getModifiers()
Get the modifiers of intertype constructor |
int |
getOriginalModifiers()
Get the modifiers of intertype constructor |
AbcClass |
getQualifier()
|
AbcClass |
getTarget()
Get the target where of the intertype decl |
boolean |
hasMangleParam()
Does this constructor have an additional last parameter for mangling purposes? |
java.lang.String |
toString()
|
Methods inherited from class abc.weaving.aspectinfo.InAspect |
---|
getAspect |
Methods inherited from class abc.weaving.aspectinfo.Syntax |
---|
getPosition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int SUPER
public static int THIS
Constructor Detail |
---|
public IntertypeConstructorDecl(AbcClass target, Aspect aspct, int mod, int origmod, boolean hasMangleParam, java.util.List formalTypes, java.util.List throwTypes, AbcClass qualifier, int kind, java.util.List arguments, MethodSig body, Position pos)
Method Detail |
---|
public AbcClass getTarget()
public int getModifiers()
public int getOriginalModifiers()
public boolean hasMangleParam()
public java.util.List getFormalTypes()
AbcType
objects.public java.util.List getExceptions()
soot.SootClass
objects.public AbcClass getQualifier()
public int getKind()
public java.util.List getArguments()
public MethodSig getBody()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |