|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.components.xscript.XScriptVariableScope
public class XScriptVariableScope
XScriptVariableScope
maintains variables in a given
scope. A variable has a unique name within a scope, but multiple
variables with the same name can exist within different scopes.
Constructor Summary | |
---|---|
XScriptVariableScope()
|
Method Summary | |
---|---|
boolean |
defines(String name)
|
XScriptObject |
get(String name)
Obtains the value of the XScript name variable. |
void |
put(String name,
XScriptObject value)
Define a new variable or overwrite the value of an existing variable in this scope. |
XScriptObject |
remove(String name)
Removes the XScript variable that's accessible via name . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XScriptVariableScope()
Method Detail |
---|
public void put(String name, XScriptObject value)
name
- a String
valuevalue
- a XScriptObject
valuepublic XScriptObject get(String name)
name
variable.
name
- a String
value
XScriptObject
valuepublic XScriptObject remove(String name)
name
.
name
- a String
valuepublic boolean defines(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |