org.apache.xpath.operations
public class Variable extends Expression implements PathComponent
Method Summary | |
---|---|
void | callVisitors(ExpressionOwner owner, XPathVisitor visitor) |
boolean | deepEquals(Expression expr) |
XObject | execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the
result of the expression.
|
XObject | execute(XPathContext xctxt, boolean destructiveOK)
Dereference the variable, and return the reference value. |
void | fixupVariables(Vector vars, int globalsSize)
This function is used to fixup variables from QNames to stack frame
indexes at stylesheet build time. |
int | getAnalysisBits()
Get the analysis bits for this walker, as defined in the WalkerFactory. |
ElemVariable | getElemVariable()
Get the XSLT ElemVariable that this sub-expression references. |
boolean | getGlobal()
Set the index for the variable into the stack. |
int | getIndex()
Set the index for the variable into the stack. |
QName | getQName()
Get the qualified name of the variable.
|
boolean | isPsuedoVarRef()
Tell if this is a psuedo variable reference, declared by Xalan instead
of by the user. |
boolean | isStableNumber()
Tell if this expression returns a stable number that will not change during
iterations within the expression. |
void | setIndex(int index)
Set the index for the variable into the stack. |
void | setIsGlobal(boolean isGlobal)
Set whether or not this is a global reference. |
void | setQName(QName qname)
Set the qualified name of the variable.
|
See Also: XPathVisitable
See Also: deepEquals
Parameters: xctxt The XPath runtime context.
Returns: The result of the expression in the form of a XObject
.
Throws: javax.xml.transform.TransformerException if a runtime exception occurs.
Parameters: xctxt The runtime execution context.
Returns: The evaluated variable, or an empty nodeset if not found.
Throws: javax.xml.transform.TransformerException
Parameters: vars List of QNames that correspond to variables. This list should be searched backwards for the first qualified name that corresponds to the variable reference qname. The position of the QName in the vector from the start of the vector will be its position in the stack frame (but variables above the globalsTop value will need to be offset to the current stack frame).
Returns: One of WalkerFactory#BIT_DESCENDANT, etc.
Returns: The dereference to the ElemVariable, or null if not found.
Returns: true if this should be a global variable reference.
Returns: index a global or local index.
Returns: A non-null reference to a qualified name.
Returns: true if the expression represents a stable number.
Parameters: index a global or local index.
Parameters: isGlobal true if this should be a global variable reference.
Parameters: qname Must be a non-null reference to a qualified name.