|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectContext_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 AJContextpublic boolean inDeclare()
AJContext
inDeclare in interface AJContextpublic AJContext pushCflow(java.util.Collection mustBind)
AJContext
pushCflow in interface AJContextpublic boolean inCflow()
AJContext
inCflow in interface AJContextpublic java.util.Collection getCflowMustBind()
AJContext
getCflowMustBind in interface AJContextpublic AJContext pushIf()
AJContext
pushIf in interface AJContextpublic boolean inIf()
AJContext
inIf in interface AJContextpublic AJContext pushAdvice(boolean isAround)
pushAdvice in interface AJContextpublic boolean inAdvice()
inAdvice in interface AJContextpublic void addProceed(MethodInstance mi)
addProceed in interface AJContextpublic MethodInstance proceedInstance()
proceedInstance in interface AJContextpublic ClassType getAspect()
public boolean inInterType()
AJContext
inInterType in interface AJContextpublic boolean nested()
AJContext
nested in interface AJContextpublic ClassType hostClass()
hostClass in interface AJContext
public Context pushClass(ParsedClassType c,
ClassType t)
public Context pushHost(ClassType t,
boolean declaredStatic)
AJContext
pushHost in interface AJContextpublic Context pushStatic()
public boolean explicitlyStatic()
AJContext
explicitlyStatic in interface AJContextprotected Context_c push()
public ClassType findFieldScopeInHost(java.lang.String name)
findFieldScopeInHost in interface AJContextpublic ClassType findMethodScopeInHost(java.lang.String name)
findMethodScopeInHost in interface AJContextprotected 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
SemanticExceptionpublic 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 AJContextpublic boolean methodInHost(java.lang.String name)
AJContext
methodInHost in interface AJContextpublic AJContext addITMembers(ReferenceType type)
AJContext
addITMembers in interface AJContextpublic Context pushAspect(AspectType type)
pushAspect in interface AJContextpublic AspectType currentAspect()
AJContext
currentAspect in interface AJContext
public ClassType findPointcutScope(java.lang.String name)
throws SemanticException
findPointcutScope in interface AJContextSemanticException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||