|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Namespace | |
|---|---|
| org.zkoss.zk.scripting | Scripting intepreter relevant classes, including interpreter, namespace and so on. |
| org.zkoss.zk.scripting.bsh | BeanShell - Java Interpreter. |
| org.zkoss.zk.scripting.util | Utilities for implementing interpters and namespaces. |
| org.zkoss.zk.ui | Interfaces of the common user-interfaces, such as Page and Component. |
| org.zkoss.zk.ui.impl | Implementation of user interfaces and factories (implementation only). |
| Uses of Namespace in org.zkoss.zk.scripting |
|---|
| Methods in org.zkoss.zk.scripting that return Namespace | |
|---|---|
static Namespace |
Namespaces.beforeInterpret(java.util.Map backup,
Component comp,
boolean pushNS)
Prepares builtin variable before calling Page.interpret(java.lang.String, java.lang.String, org.zkoss.zk.scripting.Namespace). |
static Namespace |
Namespaces.beforeInterpret(java.util.Map backup,
Page page,
boolean pushNS)
Prepares builtin variable before calling Page.interpret(java.lang.String, java.lang.String, org.zkoss.zk.scripting.Namespace) or a method that might be
implemented with zscript. |
static Namespace |
Namespaces.getCurrent(Page page)
Returns the current namespace. |
Namespace |
Namespace.getParent()
Returns the parent name space, or null if this is topmost. |
| Methods in org.zkoss.zk.scripting with parameters of type Namespace | |
|---|---|
static void |
Namespaces.afterInterpret(java.util.Map backup,
Namespace ns,
boolean popNS)
Used with Namespaces.beforeInterpret(java.util.Map, org.zkoss.zk.ui.Component, boolean) to clean up builtin
variables. |
static void |
Namespaces.backupVariable(java.util.Map backup,
Namespace ns,
java.lang.String name)
Backup the specfied variable, such that it can be restored with Namespaces.afterInterpret(java.util.Map, org.zkoss.zk.scripting.Namespace, boolean). |
boolean |
HierachicalAware.containsVariable(Namespace ns,
java.lang.String name)
Tests whether a variable defined in this interpreter. |
Method |
HierachicalAware.getMethod(Namespace ns,
java.lang.String name,
java.lang.Class[] argTypes)
Returns the method of the specified name defined in this interpreter's scope identified by the specified namespace, or null if not defined. |
java.lang.Object |
HierachicalAware.getVariable(Namespace ns,
java.lang.String name)
Returns the value of a variable defined in this interpreter's scope identified by the specified namespace. |
void |
Interpreter.interpret(java.lang.String script,
Namespace ns)
Evaluates the script against the specified namespace. |
void |
NamespaceChangeListener.onParentChanged(Namespace newparent)
Called when the parent is changed. |
void |
Namespace.setParent(Namespace parent)
Sets the parent name space. |
void |
HierachicalAware.setVariable(Namespace ns,
java.lang.String name,
java.lang.Object value)
Sets the value of a variable to this interpreter's scope identified by the specified namespace. |
void |
HierachicalAware.unsetVariable(Namespace ns,
java.lang.String name)
Removes the value of a variable defined in the interpreter's scope identified by the specified namespace. |
| Uses of Namespace in org.zkoss.zk.scripting.bsh |
|---|
| Methods in org.zkoss.zk.scripting.bsh with parameters of type Namespace | |
|---|---|
protected boolean |
BSHInterpreter.contains(Namespace ns,
java.lang.String name)
|
protected java.lang.Object |
BSHInterpreter.get(Namespace ns,
java.lang.String name)
|
Method |
BSHInterpreter.getMethod(Namespace ns,
java.lang.String name,
java.lang.Class[] argTypes)
|
protected void |
BSHInterpreter.set(Namespace ns,
java.lang.String name,
java.lang.Object val)
|
protected void |
BSHInterpreter.unset(Namespace ns,
java.lang.String name)
|
| Uses of Namespace in org.zkoss.zk.scripting.util |
|---|
| Classes in org.zkoss.zk.scripting.util that implement Namespace | |
|---|---|
class |
AbstractNamespace
A skeletal class for implementing Namespace. |
class |
SimpleNamespace
A simple implementation of Namespace. |
| Methods in org.zkoss.zk.scripting.util that return Namespace | |
|---|---|
protected Namespace |
GenericInterpreter.getCurrent()
Returns the current namespace, or null if no namespace is allowed. |
Namespace |
SimpleNamespace.getParent()
|
| Methods in org.zkoss.zk.scripting.util with parameters of type Namespace | |
|---|---|
protected void |
GenericInterpreter.afterInterpret(Namespace ns)
Called after GenericInterpreter.exec(java.lang.String). |
protected void |
GenericInterpreter.beforeInterpret(Namespace ns)
Called before GenericInterpreter.exec(java.lang.String). |
protected boolean |
GenericInterpreter.contains(Namespace ns,
java.lang.String name)
Tests whether a variable is defined in the interpreter's scope associated with the specified namespace. |
boolean |
GenericInterpreter.containsVariable(Namespace ns,
java.lang.String name)
Tests whether the variable exists by using the specified name as a reference to identify the interpreter's scope. |
void |
SimpleNamespace.copy(Namespace ns)
Copies all variables from the specified namespace. |
protected java.lang.Object |
GenericInterpreter.get(Namespace ns,
java.lang.String name)
Gets the variable from the interpreter's scope associated with the giving namespace. |
protected java.lang.Object |
GenericInterpreter.getFromNamespace(Namespace ns,
java.lang.String name)
Returns the variable through the specified namespaces and variable resolvers, or GenericInterpreter.UNDEFINED if the variable is not
defined. |
Method |
GenericInterpreter.getMethod(Namespace ns,
java.lang.String name,
java.lang.Class[] argTypes)
Returns null since retrieving methods is not supported. |
java.lang.Object |
GenericInterpreter.getVariable(Namespace ns,
java.lang.String name)
Returns the value of a variable defined in this interpreter's scope identified by the specified namespace. |
void |
GenericInterpreter.interpret(java.lang.String script,
Namespace ns)
Handles the namespace and then invoke GenericInterpreter.exec(java.lang.String). |
protected void |
AbstractNamespace.notifyParentChanged(Namespace newparent)
Invokes NamespaceChangeListener.onParentChanged(org.zkoss.zk.scripting.Namespace) for registered
listeners. |
protected void |
GenericInterpreter.set(Namespace ns,
java.lang.String name,
java.lang.Object value)
Sets the variable to the interpreter's scope associated with the giving namespace. |
void |
SimpleNamespace.setParent(Namespace parent)
|
void |
GenericInterpreter.setVariable(Namespace ns,
java.lang.String name,
java.lang.Object value)
Sets the value of a variable to this interpreter's scope identified by the specified namespace. |
protected void |
GenericInterpreter.unset(Namespace ns,
java.lang.String name)
Removes the variable from the interpreter. |
void |
GenericInterpreter.unsetVariable(Namespace ns,
java.lang.String name)
Removes the value of a variable defined in the interpreter's scope identified by the specified namespace. |
| Uses of Namespace in org.zkoss.zk.ui |
|---|
| Methods in org.zkoss.zk.ui that return Namespace | |
|---|---|
Namespace |
Page.getNamespace()
Returns the namespace used to store variables belonging to the ID space of this page. |
Namespace |
Component.getNamespace()
Returns the namespace to store variables and functions belonging to the ID space of this component. |
Namespace |
AbstractComponent.getNamespace()
|
| Methods in org.zkoss.zk.ui with parameters of type Namespace | |
|---|---|
Method |
Page.getZScriptMethod(Namespace ns,
java.lang.String name,
java.lang.Class[] argTypes)
Returns the variable of the specified name by searching the logical scope of the specified namespace for all the loaded interpreters. |
java.lang.Object |
Page.getZScriptVariable(Namespace ns,
java.lang.String name)
Returns the value of the variable of the specified name by searching the logical scope of the specified namespace for all the loaded interpreters, if any. |
void |
Page.interpret(java.lang.String zslang,
java.lang.String script,
Namespace ns)
Interpret a script of the specified scripting language against the specified namespace. |
| Uses of Namespace in org.zkoss.zk.ui.impl |
|---|
| Methods in org.zkoss.zk.ui.impl that return Namespace | |
|---|---|
Namespace |
PageImpl.getNamespace()
|
| Methods in org.zkoss.zk.ui.impl with parameters of type Namespace | |
|---|---|
Method |
PageImpl.getZScriptMethod(Namespace ns,
java.lang.String name,
java.lang.Class[] argTypes)
|
java.lang.Object |
PageImpl.getZScriptVariable(Namespace ns,
java.lang.String name)
|
void |
PageImpl.interpret(java.lang.String zslang,
java.lang.String script,
Namespace ns)
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||