|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjcaas.script_nodes.Context
public abstract class Context
This class facilitates a shared storage area for a script.
| Constructor Summary | |
|---|---|
Context()
Creates a default instance of this class. |
|
| Method Summary | |
|---|---|
JFunction |
getMethodFunction(Identifier obj_id,
Identifier method_id)
|
AnnotationFunctions |
getScriptFunctions()
Gets the script functions to use. |
StaticFunction |
getStaticFunction(Identifier id)
|
java.lang.Object |
getVal(java.lang.Object key)
Gets the value of a given expression in this context. |
void |
reset()
Clears the context. |
void |
setScriptFunctions(AnnotationFunctions functions)
Sets the script functions to use. |
java.lang.Object |
setVal(java.lang.Object key,
java.lang.Object val)
Sets the value of the given expression in this context. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Context()
| Method Detail |
|---|
public java.lang.Object getVal(java.lang.Object key)
key - the expression to find the value of.
public java.lang.Object setVal(java.lang.Object key,
java.lang.Object val)
key - the expression to set the value of.val - the value of the expression.
public void reset()
public void setScriptFunctions(AnnotationFunctions functions)
functions - public StaticFunction getStaticFunction(Identifier id)
public JFunction getMethodFunction(Identifier obj_id,
Identifier method_id)
public AnnotationFunctions getScriptFunctions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||