|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.media.mn8.Scope
The base implementation of a Scope.
Field Summary | |
protected Scope |
_prev
The upper (in hierarchy) scope. |
Constructor Summary | |
Scope(Scope prev)
The default constructor. |
Method Summary | |
void |
clear()
|
Object |
clone()
|
String |
getForcedType(String instanceName)
|
Concept |
getInstance(String variable_name)
Returns a variable from the local scope. |
Scope |
getPrevScope()
Returns the previous (upper in hierarchy) scope. |
void |
insertInstance(String variable_name,
Concept variable)
Inserts a variable into the local scope. |
boolean |
isForcedInstance(String instanceName)
|
boolean |
isInstance(String instanceName)
|
void |
setForcedType(String instanceName,
String forcedType)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Scope _prev
Constructor Detail |
public Scope(Scope prev)
prev
- The outer scope, in which this one is situatedMethod Detail |
public void clear()
public void insertInstance(String variable_name, Concept variable)
variable_name
- The name of the variablevariable
- The variablepublic Concept getInstance(String variable_name)
variable_name
- The name of the wanted variable
public boolean isInstance(String instanceName)
public boolean isForcedInstance(String instanceName)
public String getForcedType(String instanceName)
public void setForcedType(String instanceName, String forcedType)
public Scope getPrevScope()
public Object clone()
clone
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |