org.aspectj.weaver
Class BindingScope

java.lang.Object
  extended by org.aspectj.weaver.patterns.SimpleScope
      extended by org.aspectj.weaver.BindingScope
All Implemented Interfaces:
IScope

public class BindingScope
extends SimpleScope

BindingScope that knows the enclosingType, which is needed for pointcut reference resolution

Author:
Alexandre Vasseur, Andy Clement

Constructor Summary
BindingScope(ResolvedType type, ISourceContext sourceContext, FormalBinding[] bindings)
           
 
Method Summary
 ResolvedType getEnclosingType()
           
 UnresolvedType lookupType(java.lang.String name, IHasPosition location)
           
 ISourceLocation makeSourceLocation(IHasPosition location)
           
 
Methods inherited from class org.aspectj.weaver.patterns.SimpleScope
getFormal, getFormalCount, getImportedNames, getImportedPrefixes, getMessageHandler, getWorld, lookupFormal, makeFormalBindings, message, message, message, setImportedNames, setImportedPrefixes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindingScope

public BindingScope(ResolvedType type,
                    ISourceContext sourceContext,
                    FormalBinding[] bindings)
Method Detail

getEnclosingType

public ResolvedType getEnclosingType()
Specified by:
getEnclosingType in interface IScope
Overrides:
getEnclosingType in class SimpleScope

makeSourceLocation

public ISourceLocation makeSourceLocation(IHasPosition location)
Overrides:
makeSourceLocation in class SimpleScope

lookupType

public UnresolvedType lookupType(java.lang.String name,
                                 IHasPosition location)
Specified by:
lookupType in interface IScope
Overrides:
lookupType in class SimpleScope
Returns:
the type corresponding to the name in this scope, or ResolvedType.MISSING if no such type exists