org.aspectj.weaver
Class BindingScope
java.lang.Object
org.aspectj.weaver.patterns.SimpleScope
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
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 |
BindingScope
public BindingScope(ResolvedType type,
ISourceContext sourceContext,
FormalBinding[] bindings)
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