org.aspectj.weaver.patterns
Class ScopeWithTypeVariables
java.lang.Object
org.aspectj.weaver.patterns.ScopeWithTypeVariables
- All Implemented Interfaces:
- IScope
public class ScopeWithTypeVariables
- extends java.lang.Object
- implements IScope
A scope that also considers type variables when looking up a type.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScopeWithTypeVariables
public ScopeWithTypeVariables(java.lang.String[] typeVarNames,
IScope delegate)
lookupType
public UnresolvedType lookupType(java.lang.String name,
IHasPosition location)
- Specified by:
lookupType in interface IScope
- Returns:
- the type corresponding to the name in this scope, or ResolvedType.MISSING if no such type exists
getWorld
public World getWorld()
- Specified by:
getWorld in interface IScope
getEnclosingType
public ResolvedType getEnclosingType()
- Specified by:
getEnclosingType in interface IScope
getMessageHandler
public IMessageHandler getMessageHandler()
- Specified by:
getMessageHandler in interface IScope
lookupFormal
public FormalBinding lookupFormal(java.lang.String name)
- Specified by:
lookupFormal in interface IScope
- Returns:
- the formal associated with the name, or null if no such formal exists
getFormal
public FormalBinding getFormal(int i)
- Specified by:
getFormal in interface IScope
- Returns:
- the formal with the index. Throws ArrayOutOfBounds exception if out of bounds
getFormalCount
public int getFormalCount()
- Specified by:
getFormalCount in interface IScope
getImportedPrefixes
public java.lang.String[] getImportedPrefixes()
- Specified by:
getImportedPrefixes in interface IScope
getImportedNames
public java.lang.String[] getImportedNames()
- Specified by:
getImportedNames in interface IScope
message
public void message(IMessage.Kind kind,
IHasPosition location,
java.lang.String message)
- Specified by:
message in interface IScope
message
public void message(IMessage.Kind kind,
IHasPosition location1,
IHasPosition location2,
java.lang.String message)
- Specified by:
message in interface IScope
message
public void message(IMessage aMessage)
- Specified by:
message in interface IScope