Method Summary |
|
public void | addFunction(String name, Object fun) |
public int | addVar(String name, Object value) Adds the value associated with name. |
public int | addVar(String name, Var value) Adds the value associated with name. |
public void | clear() Clears all values in the local environment. |
static Env | create() |
public void | free() |
public Object | getCache(Object key) |
public Node | getContextNode() Gets the context node. |
public int | getContextPosition() Returns the position of the context node. |
public int | getContextSize() Returns the number of nodes in the context list. |
public Node | getCurrentNode() Gets the current node. |
public ExprEnvironment | getExprEnv() |
public XPathFun | getFunction(String name) Returns the named function. |
public Document | getOwnerDocument() Returns a document for creating nodes. |
Env | getParent() Returns the parent envivonment. |
public int | getPositionIndex() |
public AbstractPattern | getSelect() |
public StylesheetEnv | getStylesheetEnv() |
public int | getTop() Returns the top of the stack. |
public int | getUseCount() |
public Var | getVar(String name) Returns the value associated with name. |
public VarEnv | getVarEnv() Returns the variable environment. |
public int | getVarSize() Returns the current number of local variables. |
public boolean | hasMorePositions() Returns true if there are more positions() needed to iterate through. |
void | init(Env parent) Initialize the XPath environment with values from the parent. |
void | init(Env parent, AbstractPattern select, Node currentNode) Initialize the XPath environment with a context and a select node. |
void | initMacro(Env parent) Initialize the XPath environment with values from the parent. |
public void | popToTop(int top) Pops the last count vars from the local stack. |
public void | popVars(int count) Pops the last count vars from the local stack. |
public void | setCache(Object key, Object value) |
public Node | setContextNode(Node contextNode) Sets the context node. |
public int | setContextPosition(int position) |
public int | setContextSize(int size) Sets the context size to a know value. |
public void | setCurrentNode(Node node) Sets the current node. |
public ExprEnvironment | setExprEnv(ExprEnvironment exprEnv) |
public HashMap | setFunctions(HashMap functions) |
public void | setGlobal(String name, Object value) Sets a global variable. |
public boolean | setMorePositions(boolean more) Set true if there are more positions() needed to iterate through.
Parameters: more - if true, there are more positions to iterate through. |
public void | setPosition(int position) |
public int | setPositionIndex(int index) |
public AbstractPattern | setSelect(Node node, AbstractPattern select) |
public void | setStylesheetEnv(StylesheetEnv stylesheetEnv) |
public void | setVar(String name, Object value) Sets the value associated with name. |
public void | setVarEnv(VarEnv varEnv) Sets the variable environment. |
public void | setVarSize(int size) Sets the current number of local variables (popping, them). |
public String | stringValue(Node node) Returns the string-value of the node. |
public Object | systemProperty(String namespaceURI, String localName) Returns the given system property. |