org.apache.xalan.templates
Class XUnresolvedVariable
- Cloneable, Serializable, ExpressionNode, SourceLocator, XPathVisitable
public class XUnresolvedVariable
An instance of this class holds unto a variable until
it is executed. It is used at this time for global
variables which must (we think) forward reference.
XObject | execute(XPathContext xctxt) - For support of literal objects in xpaths.
|
int | getType() - Tell what kind of class this is.
|
String | getTypeString() - Given a request type, return the equivalent string.
|
void | setVarStackContext(int bottom) - Set an index into the variable stack where the variable context
ends, i.e. at the point we should terminate the search.
|
void | setVarStackPos(int top) - Set an index to the point in the variable stack where we should
begin variable searches for evaluation of expressions.
|
allowDetachToRelease , appendToFsb , bool , boolWithSideEffects , callVisitors , castToType , create , create , deepEquals , destruct , detach , dispatchCharactersEvents , equals , execute , fixupVariables , getFresh , getType , getTypeString , greaterThan , greaterThanOrEqual , iter , lessThan , lessThanOrEqual , mutableNodeset , nodelist , nodeset , notEquals , num , numWithSideEffects , object , reset , rtf , rtf , rtree , rtree , str , toString , xstr |
asIterator , asIteratorRaw , asNode , assertion , bool , canTraverseOutsideSubtree , deepEquals , error , execute , execute , execute , execute , executeCharsToContentHandler , exprAddChild , exprGetChild , exprGetNumChildren , exprGetParent , exprSetParent , fixupVariables , getColumnNumber , getExpressionOwner , getLineNumber , getPublicId , getSystemId , isNodesetExpr , isStableNumber , num , warn , xstr |
XUnresolvedVariable
public XUnresolvedVariable(ElemVariable obj,
int sourceNode,
TransformerImpl transformer,
int varStackPos,
int varStackContext,
boolean isGlobal)
Create an XUnresolvedVariable, that may be executed at a later time.
This is primarily used so that forward referencing works with
global variables. An XUnresolvedVariable is initially pushed
into the global variable stack, and then replaced with the real
thing when it is accessed.
obj
- Must be a non-null reference to an ElemVariable.sourceNode
- The node context for execution.transformer
- The transformer execution context.varStackPos
- An index to the point in the variable stack where we should
begin variable searches for evaluation of expressions.varStackContext
- An index into the variable stack where the variable context
ends, i.e. at the point we should terminate the search.isGlobal
- true if this is a global variable.
execute
public XObject execute(XPathContext xctxt)
throws javax.xml.transform.TransformerException
For support of literal objects in xpaths.
- execute in interface XObject
xctxt
- The XPath execution context.
getType
public int getType()
Tell what kind of class this is.
- getType in interface XObject
getTypeString
public String getTypeString()
Given a request type, return the equivalent string.
For diagnostic purposes.
- getTypeString in interface XObject
setVarStackContext
public void setVarStackContext(int bottom)
Set an index into the variable stack where the variable context
ends, i.e. at the point we should terminate the search.
bottom
- The point at which the search should terminate, normally
zero for global variables.
setVarStackPos
public void setVarStackPos(int top)
Set an index to the point in the variable stack where we should
begin variable searches for evaluation of expressions.
This is -1 if m_isTopLevel is false.
top
- A valid value that specifies where in the variable
stack the search should begin.
Copyright © 2006 Apache XML Project. All Rights Reserved.