|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Context_c abc.aspectj.types.AJContext_c
public class AJContext_c
Field Summary | |
---|---|
protected java.util.Collection |
cflowMustBind
|
protected AspectType |
currentAspect
|
protected boolean |
declaredStatic
|
protected AJContext_c |
endHostScope
|
protected ClassType |
fakeType
|
protected ClassType |
host
|
protected boolean |
inCflow
|
protected boolean |
indeclare
|
protected boolean |
inIf
|
protected boolean |
isAdvice
|
protected boolean |
isAround
|
protected boolean |
isfake
|
protected boolean |
nested
|
protected MethodInstance |
proceed
|
protected AJContext_c |
startHostScope
|
Constructor Summary | |
---|---|
AJContext_c(TypeSystem ts)
|
Method Summary | |
---|---|
AJContext |
addITMembers(ReferenceType type)
add all the members from the intertype host that are accessible |
void |
addProceed(MethodInstance mi)
|
AspectType |
currentAspect()
Get enclosing aspect, or null |
AJContext |
endHostScope()
|
boolean |
explicitlyStatic()
was the ITD itself declared static? |
ClassType |
findFieldScopeInHost(java.lang.String name)
Finds the class which added a field to the scope. |
Named |
findInThisScope(java.lang.String name)
|
MethodInstance |
findMethod(java.lang.String name,
java.util.List argTypes)
Looks up a method with name "name" and arguments compatible with "argTypes". |
ClassType |
findMethodContainerInThisScope(java.lang.String name)
|
ClassType |
findMethodScope(java.lang.String name)
Finds the class which added a method to the scope. |
ClassType |
findMethodScopeInHost(java.lang.String name)
Finds the class which added a method to the host scope. |
ClassType |
findPointcutScope(java.lang.String name)
pointcut lookup |
VarInstance |
findVariableInThisScope(java.lang.String name)
|
ClassType |
getAspect()
|
java.util.Collection |
getCflowMustBind()
get the names of variables that are bound in the smallest enclosing cflow |
ClassType |
hostClass()
|
boolean |
inAdvice()
|
boolean |
inCflow()
inside a cflow? |
boolean |
inDeclare()
are we in a declare decl? |
boolean |
inIf()
inside an if pointcut? |
boolean |
inInterType()
in scope of an intertype decl? |
boolean |
methodInHost(java.lang.String name)
was a method by this name introduced via the host? |
boolean |
nested()
inner class inside intertype decl? |
MethodInstance |
proceedInstance()
|
protected Context_c |
push()
|
AJContext |
pushAdvice(boolean isAround)
|
Context |
pushAspect(AspectType type)
|
AJContext |
pushCflow(java.util.Collection mustBind)
mark entry of cflow pointcut expr |
Context |
pushClass(ParsedClassType c,
ClassType t)
|
AJContext |
pushDeclare()
enter a declare warning/error declaration |
Context |
pushHost(ClassType t,
boolean declaredStatic)
enter an intertype decl |
AJContext |
pushIf()
mark entry of if pointcut expr |
Context |
pushStatic()
|
AJContext |
startHostScope()
|
protected ClassType |
type()
|
boolean |
varInHost(java.lang.String name)
was a field of this name introduced via the host? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ClassType host
protected boolean nested
protected boolean declaredStatic
protected AJContext_c startHostScope
protected AJContext_c endHostScope
protected ClassType fakeType
protected boolean isfake
protected boolean indeclare
protected boolean isAdvice
protected boolean isAround
protected MethodInstance proceed
protected boolean inCflow
protected java.util.Collection cflowMustBind
protected boolean inIf
protected AspectType currentAspect
Constructor Detail |
---|
public AJContext_c(TypeSystem ts)
Method Detail |
---|
public AJContext pushDeclare()
AJContext
pushDeclare
in interface AJContext
public boolean inDeclare()
AJContext
inDeclare
in interface AJContext
public AJContext pushCflow(java.util.Collection mustBind)
AJContext
pushCflow
in interface AJContext
public boolean inCflow()
AJContext
inCflow
in interface AJContext
public java.util.Collection getCflowMustBind()
AJContext
getCflowMustBind
in interface AJContext
public AJContext pushIf()
AJContext
pushIf
in interface AJContext
public boolean inIf()
AJContext
inIf
in interface AJContext
public AJContext pushAdvice(boolean isAround)
pushAdvice
in interface AJContext
public boolean inAdvice()
inAdvice
in interface AJContext
public void addProceed(MethodInstance mi)
addProceed
in interface AJContext
public MethodInstance proceedInstance()
proceedInstance
in interface AJContext
public ClassType getAspect()
public boolean inInterType()
AJContext
inInterType
in interface AJContext
public boolean nested()
AJContext
nested
in interface AJContext
public ClassType hostClass()
hostClass
in interface AJContext
public Context pushClass(ParsedClassType c, ClassType t)
public Context pushHost(ClassType t, boolean declaredStatic)
AJContext
pushHost
in interface AJContext
public Context pushStatic()
public boolean explicitlyStatic()
AJContext
explicitlyStatic
in interface AJContext
protected Context_c push()
public ClassType findFieldScopeInHost(java.lang.String name)
findFieldScopeInHost
in interface AJContext
public ClassType findMethodScopeInHost(java.lang.String name)
findMethodScopeInHost
in interface AJContext
protected ClassType type()
public MethodInstance findMethod(java.lang.String name, java.util.List argTypes) throws SemanticException
SemanticException
public ClassType findMethodScope(java.lang.String name) throws SemanticException
SemanticException
public ClassType findMethodContainerInThisScope(java.lang.String name)
public VarInstance findVariableInThisScope(java.lang.String name)
public Named findInThisScope(java.lang.String name)
public AJContext startHostScope()
public AJContext endHostScope()
public boolean varInHost(java.lang.String name)
AJContext
varInHost
in interface AJContext
public boolean methodInHost(java.lang.String name)
AJContext
methodInHost
in interface AJContext
public AJContext addITMembers(ReferenceType type)
AJContext
addITMembers
in interface AJContext
public Context pushAspect(AspectType type)
pushAspect
in interface AJContext
public AspectType currentAspect()
AJContext
currentAspect
in interface AJContext
public ClassType findPointcutScope(java.lang.String name) throws SemanticException
findPointcutScope
in interface AJContext
SemanticException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |