com.caucho.xpath
Interface ExprEnvironment

All Known Implementing Classes:
AttributeIterator, AttributeListIterator, AxisIterator, Env, FilterIterator, MergeIterator, NamespaceIterator, NodeArrayListIterator, NodeIterator, NodeListIterator, SingleNodeIterator, UnionIterator, UniqueIterator

public interface ExprEnvironment

Adds variable environment.


Method Summary
 org.w3c.dom.Node getContextNode()
          Return context node from the XPath expression context.
 int getContextPosition()
          Returns the context position from the XPath expression context.
 int getContextSize()
          Returns the context size from the XPath expression context.
 org.w3c.dom.Node getCurrentNode()
          Returns the current node from the XSLT context; the same as calling current() function from the XPath expression context.
 XPathFun getFunction(java.lang.String name)
          Returns the value associated with name.
 org.w3c.dom.Document getOwnerDocument()
          Returns a Document to be used for creating nodes.
 StylesheetEnv getStylesheetEnv()
          Returns the StylesheetEnv
 Var getVar(java.lang.String name)
          Returns the value associated with name.
 org.w3c.dom.Node setContextNode(org.w3c.dom.Node node)
          Sets the node context.
 java.lang.String stringValue(org.w3c.dom.Node n)
          Returns the string-value of the specified Node.
 java.lang.Object systemProperty(java.lang.String namespaceURI, java.lang.String localName)
          Returns an Object representing the value of the system property whose expanded-name has the specified namespace URI and local part.
 

Method Detail

getVar

Var getVar(java.lang.String name)
Returns the value associated with name.

name must be interned


getFunction

XPathFun getFunction(java.lang.String name)
Returns the value associated with name.

name must be interned


setContextNode

org.w3c.dom.Node setContextNode(org.w3c.dom.Node node)
Sets the node context.


getStylesheetEnv

StylesheetEnv getStylesheetEnv()
Returns the StylesheetEnv


getContextNode

org.w3c.dom.Node getContextNode()
Return context node from the XPath expression context.


getContextPosition

int getContextPosition()
Returns the context position from the XPath expression context.


getContextSize

int getContextSize()
Returns the context size from the XPath expression context.


getCurrentNode

org.w3c.dom.Node getCurrentNode()
Returns the current node from the XSLT context; the same as calling current() function from the XPath expression context.


getOwnerDocument

org.w3c.dom.Document getOwnerDocument()
Returns a Document to be used for creating nodes.


systemProperty

java.lang.Object systemProperty(java.lang.String namespaceURI,
                                java.lang.String localName)
Returns an Object representing the value of the system property whose expanded-name has the specified namespace URI and local part.


stringValue

java.lang.String stringValue(org.w3c.dom.Node n)
Returns the string-value of the specified Node.