abc.aspectj.types
Interface AJContext

All Known Implementing Classes:
AJContext_c

public interface AJContext

Author:
Oege de Moor

Method Summary
 AJContext addITMembers(ReferenceType host)
          add all the members from the intertype host that are accessible
 void addProceed(MethodInstance proceedInstance)
           
 AspectType currentAspect()
          Get enclosing aspect, or null
 boolean explicitlyStatic()
          was the ITD itself declared static?
 ClassType findFieldScopeInHost(java.lang.String name)
          if varInHost(name), find the class that introduced the field by name (this can be an outer class of the host.
 ClassType findMethodScopeInHost(java.lang.String name)
          if methodInHost(name), find the class that introduced it (this can be an outer class of the host.
 ClassType findPointcutScope(java.lang.String name)
          find the class that introduced a pointcut by the given name
 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()
           
 AJContext pushAdvice(boolean isAround)
           
 Context pushAspect(AspectType ct)
           
 AJContext pushCflow(java.util.Collection mustBind)
          mark entry of cflow pointcut expr
 AJContext pushDeclare()
          enter a declare warning/error declaration
 Context pushHost(ClassType ct, boolean declaredStatic)
          enter an intertype decl
 AJContext pushIf()
          mark entry of if pointcut expr
 boolean varInHost(java.lang.String name)
          was a field of this name introduced via the host?
 

Method Detail

hostClass

ClassType hostClass()

pushAspect

Context pushAspect(AspectType ct)

pushHost

Context pushHost(ClassType ct,
                 boolean declaredStatic)
enter an intertype decl


inInterType

boolean inInterType()
in scope of an intertype decl?


varInHost

boolean varInHost(java.lang.String name)
was a field of this name introduced via the host?


methodInHost

boolean methodInHost(java.lang.String name)
was a method by this name introduced via the host?


findFieldScopeInHost

ClassType findFieldScopeInHost(java.lang.String name)
if varInHost(name), find the class that introduced the field by name (this can be an outer class of the host. The result is in general a subtype of the field's container.


findMethodScopeInHost

ClassType findMethodScopeInHost(java.lang.String name)
                                throws SemanticException
if methodInHost(name), find the class that introduced it (this can be an outer class of the host. The result is in general a subtype of the method's container.

Throws:
SemanticException

nested

boolean nested()
inner class inside intertype decl?


addITMembers

AJContext addITMembers(ReferenceType host)
add all the members from the intertype host that are accessible


explicitlyStatic

boolean explicitlyStatic()
was the ITD itself declared static?


pushAdvice

AJContext pushAdvice(boolean isAround)

addProceed

void addProceed(MethodInstance proceedInstance)

proceedInstance

MethodInstance proceedInstance()

inAdvice

boolean inAdvice()

pushDeclare

AJContext pushDeclare()
enter a declare warning/error declaration


inDeclare

boolean inDeclare()
are we in a declare decl?


currentAspect

AspectType currentAspect()
Get enclosing aspect, or null


findPointcutScope

ClassType findPointcutScope(java.lang.String name)
                            throws SemanticException
find the class that introduced a pointcut by the given name

Throws:
SemanticException

pushCflow

AJContext pushCflow(java.util.Collection mustBind)
mark entry of cflow pointcut expr


pushIf

AJContext pushIf()
mark entry of if pointcut expr


inCflow

boolean inCflow()
inside a cflow?


getCflowMustBind

java.util.Collection getCflowMustBind()
get the names of variables that are bound in the smallest enclosing cflow


inIf

boolean inIf()
inside an if pointcut?