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 IScopepublic IMessageHandler getMessageHandler()
getMessageHandler in interface IScopepublic FormalBinding lookupFormal(java.lang.String name)
lookupFormal in interface IScopepublic FormalBinding getFormal(int i)
public int getFormalCount()
getFormalCount in interface IScopepublic java.lang.String[] getImportedNames()
getImportedNames in interface IScopepublic java.lang.String[] getImportedPrefixes()
getImportedPrefixes in interface IScopepublic 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