Package org.aspectj.weaver.patterns
Class SimpleScope
- java.lang.Object
-
- org.aspectj.weaver.patterns.SimpleScope
-
- All Implemented Interfaces:
IScope
- Direct Known Subclasses:
BindingScope
public class SimpleScope extends Object implements IScope
-
-
Field Summary
Fields Modifier and Type Field Description protected FormalBinding[]bindings
-
Constructor Summary
Constructors Constructor Description SimpleScope(World world, FormalBinding[] bindings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedTypegetEnclosingType()FormalBindinggetFormal(int i)intgetFormalCount()String[]getImportedNames()String[]getImportedPrefixes()IMessageHandlergetMessageHandler()WorldgetWorld()FormalBindinglookupFormal(String name)UnresolvedTypelookupType(String name, IHasPosition location)static FormalBinding[]makeFormalBindings(UnresolvedType[] types, String[] names)ISourceLocationmakeSourceLocation(IHasPosition location)voidmessage(IMessage aMessage)voidmessage(IMessage.Kind kind, IHasPosition location, String message)voidmessage(IMessage.Kind kind, IHasPosition location1, IHasPosition location2, String message)voidsetImportedNames(String[] importedNames)voidsetImportedPrefixes(String[] importedPrefixes)
-
-
-
Field Detail
-
bindings
protected FormalBinding[] bindings
-
-
Constructor Detail
-
SimpleScope
public SimpleScope(World world, FormalBinding[] bindings)
-
-
Method Detail
-
lookupType
public UnresolvedType lookupType(String name, IHasPosition location)
- Specified by:
lookupTypein interfaceIScope
-
getMessageHandler
public IMessageHandler getMessageHandler()
- Specified by:
getMessageHandlerin interfaceIScope
-
lookupFormal
public FormalBinding lookupFormal(String name)
- Specified by:
lookupFormalin interfaceIScope
-
getFormal
public FormalBinding getFormal(int i)
-
getFormalCount
public int getFormalCount()
- Specified by:
getFormalCountin interfaceIScope
-
getImportedNames
public String[] getImportedNames()
- Specified by:
getImportedNamesin interfaceIScope
-
getImportedPrefixes
public String[] getImportedPrefixes()
- Specified by:
getImportedPrefixesin interfaceIScope
-
setImportedNames
public void setImportedNames(String[] importedNames)
-
setImportedPrefixes
public void setImportedPrefixes(String[] importedPrefixes)
-
makeFormalBindings
public static FormalBinding[] makeFormalBindings(UnresolvedType[] types, String[] names)
-
makeSourceLocation
public ISourceLocation makeSourceLocation(IHasPosition location)
-
message
public void message(IMessage.Kind kind, IHasPosition location1, IHasPosition location2, String message)
-
message
public void message(IMessage.Kind kind, IHasPosition location, String message)
-
getEnclosingType
public ResolvedType getEnclosingType()
- Specified by:
getEnclosingTypein interfaceIScope
-
-