public class SimpleScope extends java.lang.Object implements IScope
Modifier and Type | Field and Description |
---|---|
protected FormalBinding[] |
bindings |
Constructor and Description |
---|
SimpleScope(World world,
FormalBinding[] bindings) |
Modifier and Type | Method and Description |
---|---|
ResolvedType |
getEnclosingType() |
FormalBinding |
getFormal(int i) |
int |
getFormalCount() |
java.lang.String[] |
getImportedNames() |
java.lang.String[] |
getImportedPrefixes() |
IMessageHandler |
getMessageHandler() |
World |
getWorld() |
FormalBinding |
lookupFormal(java.lang.String name) |
UnresolvedType |
lookupType(java.lang.String name,
IHasPosition location) |
static FormalBinding[] |
makeFormalBindings(UnresolvedType[] types,
java.lang.String[] names) |
ISourceLocation |
makeSourceLocation(IHasPosition location) |
void |
message(IMessage.Kind kind,
IHasPosition location1,
IHasPosition location2,
java.lang.String message) |
void |
message(IMessage.Kind kind,
IHasPosition location,
java.lang.String message) |
void |
message(IMessage aMessage) |
void |
setImportedNames(java.lang.String[] importedNames) |
void |
setImportedPrefixes(java.lang.String[] importedPrefixes) |
protected FormalBinding[] bindings
public SimpleScope(World world, FormalBinding[] bindings)
public UnresolvedType lookupType(java.lang.String name, IHasPosition location)
lookupType
in interface IScope
public IMessageHandler getMessageHandler()
getMessageHandler
in interface IScope
public FormalBinding lookupFormal(java.lang.String name)
lookupFormal
in interface IScope
public FormalBinding getFormal(int i)
public int getFormalCount()
getFormalCount
in interface IScope
public java.lang.String[] getImportedNames()
getImportedNames
in interface IScope
public java.lang.String[] getImportedPrefixes()
getImportedPrefixes
in interface IScope
public void setImportedNames(java.lang.String[] importedNames)
public void setImportedPrefixes(java.lang.String[] importedPrefixes)
public static FormalBinding[] makeFormalBindings(UnresolvedType[] types, java.lang.String[] names)
public ISourceLocation makeSourceLocation(IHasPosition location)
public void message(IMessage.Kind kind, IHasPosition location1, IHasPosition location2, java.lang.String message)
public void message(IMessage.Kind kind, IHasPosition location, java.lang.String message)
public ResolvedType getEnclosingType()
getEnclosingType
in interface IScope