|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object FieldDecl_c abc.aspectj.ast.IntertypeFieldDecl_c
public class IntertypeFieldDecl_c
Field Summary | |
---|---|
protected TypeNode |
host
|
protected InterTypeFieldInstance |
hostInstance
|
protected java.lang.String |
identifier
|
protected MethodDecl |
initm
|
protected MethodInstance |
initmi
|
protected Flags |
originalFlags
|
protected java.lang.String |
originalName
|
protected LocalInstance |
thisParamInstance
|
Constructor Summary | |
---|---|
IntertypeFieldDecl_c(Position pos,
Flags flags,
TypeNode type,
TypeNode host,
java.lang.String name,
Expr init)
|
Method Summary | |
---|---|
IntertypeFieldDecl |
accessChange()
|
NodeVisitor |
addMembersEnter(AddMemberVisitor am)
|
void |
aspectMethodsEnter(AspectMethods visitor)
|
Node |
aspectMethodsLeave(AspectMethods visitor,
AJNodeFactory nf,
AJTypeSystem ts)
|
Context |
enterScope(Node n,
Context c)
|
TypeNode |
host()
the target class of the intertype decl |
MethodDecl |
initMethod(AJNodeFactory nf,
AJTypeSystem ts)
create a new method for the initialiser, that has "this" of host type as a parameter. |
IntertypeFieldDecl |
liftInit(AJNodeFactory nf,
AJTypeSystem ts)
replace init by method call. |
static void |
overrideITDField(ClassType pht,
FieldInstance fi)
|
void |
prettyPrint(CodeWriter w,
PrettyPrinter tr)
|
protected IntertypeFieldDecl_c |
reconstruct(TypeNode type,
Expr init,
TypeNode host)
|
Expr |
thisReference(AJNodeFactory nf,
AJTypeSystem ts)
create a reference to the "this" parameter |
Node |
typeCheck(TypeChecker tc)
|
void |
update(GlobalAspectInfo gai,
Aspect current_aspect)
Called by the AspectInfoHarvester to tell the node to
put all relevant information into the GlobalAspectInfo . |
Node |
visitChildren(NodeVisitor v)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TypeNode host
protected InterTypeFieldInstance hostInstance
protected LocalInstance thisParamInstance
protected java.lang.String identifier
protected java.lang.String originalName
protected Flags originalFlags
protected MethodDecl initm
protected MethodInstance initmi
Constructor Detail |
---|
public IntertypeFieldDecl_c(Position pos, Flags flags, TypeNode type, TypeNode host, java.lang.String name, Expr init)
Method Detail |
---|
public TypeNode host()
IntertypeDecl
host
in interface IntertypeDecl
protected IntertypeFieldDecl_c reconstruct(TypeNode type, Expr init, TypeNode host)
public Node visitChildren(NodeVisitor v)
public Node typeCheck(TypeChecker tc) throws SemanticException
SemanticException
public NodeVisitor addMembersEnter(AddMemberVisitor am)
public static void overrideITDField(ClassType pht, FieldInstance fi)
public Expr thisReference(AJNodeFactory nf, AJTypeSystem ts)
thisReference
in interface IntertypeDecl
public MethodDecl initMethod(AJNodeFactory nf, AJTypeSystem ts)
public IntertypeFieldDecl liftInit(AJNodeFactory nf, AJTypeSystem ts)
public void prettyPrint(CodeWriter w, PrettyPrinter tr)
public IntertypeFieldDecl accessChange()
public Context enterScope(Node n, Context c)
public void update(GlobalAspectInfo gai, Aspect current_aspect)
ContainsAspectInfo
AspectInfoHarvester
to tell the node to
put all relevant information into the GlobalAspectInfo
.
update
in interface ContainsAspectInfo
gai
- the target of the information.current_aspect
- the aspect currently being traversed.public void aspectMethodsEnter(AspectMethods visitor)
aspectMethodsEnter
in interface MakesAspectMethods
public Node aspectMethodsLeave(AspectMethods visitor, AJNodeFactory nf, AJTypeSystem ts)
aspectMethodsLeave
in interface MakesAspectMethods
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |