| java.lang.Object org.apache.xpath.Expression org.apache.xpath.operations.Variable
All known Subclasses: org.apache.xpath.operations.VariableSafeAbsRef,
Method Summary | |
public void | callVisitors(ExpressionOwner owner, XPathVisitor visitor) | public boolean | deepEquals(Expression expr) | public XObject | execute(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the
result of the expression.
Parameters: xctxt - The XPath runtime context. | public XObject | execute(XPathContext xctxt, boolean destructiveOK) Dereference the variable, and return the reference value. | public void | fixupVariables(java.util.Vector vars, int globalsSize) This function is used to fixup variables from QNames to stack frame
indexes at stylesheet build time.
Parameters: vars - List of QNames that correspond to variables. | public int | getAnalysisBits() Get the analysis bits for this walker, as defined in the WalkerFactory. | public org.apache.xalan.templates.ElemVariable | getElemVariable() Get the XSLT ElemVariable that this sub-expression references. | public boolean | getGlobal() Set the index for the variable into the stack. | public int | getIndex() Set the index for the variable into the stack. | public QName | getQName() Get the qualified name of the variable. | public boolean | isPsuedoVarRef() Tell if this is a psuedo variable reference, declared by Xalan instead
of by the user. | public boolean | isStableNumber() Tell if this expression returns a stable number that will not change during
iterations within the expression. | public void | setIndex(int index) Set the index for the variable into the stack. | public void | setIsGlobal(boolean isGlobal) Set whether or not this is a global reference. | public void | setQName(QName qname) Set the qualified name of the variable. |
m_index | protected int m_index(Code) | | The index of the variable, which is either an absolute index to a
global, or, if higher than the globals area, must be adjusted by adding
the offset to the current stack frame.
|
m_isGlobal | protected boolean m_isGlobal(Code) | | |
m_qname | protected QName m_qname(Code) | | The qualified name of the variable.
|
serialVersionUID | final static long serialVersionUID(Code) | | |
fixupVariables | public void fixupVariables(java.util.Vector vars, int globalsSize)(Code) | | This function is used to fixup variables from QNames to stack frame
indexes at stylesheet build time.
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). |
getAnalysisBits | public int getAnalysisBits()(Code) | | Get the analysis bits for this walker, as defined in the WalkerFactory.
One of WalkerFactory#BIT_DESCENDANT, etc. |
getElemVariable | public org.apache.xalan.templates.ElemVariable getElemVariable()(Code) | | Get the XSLT ElemVariable that this sub-expression references. In order for
this to work, the SourceLocator must be the owning ElemTemplateElement.
The dereference to the ElemVariable, or null if not found. |
getGlobal | public boolean getGlobal()(Code) | | Set the index for the variable into the stack. For advanced use only.
true if this should be a global variable reference. |
getIndex | public int getIndex()(Code) | | Set the index for the variable into the stack. For advanced use only.
index a global or local index. |
getQName | public QName getQName()(Code) | | Get the qualified name of the variable.
A non-null reference to a qualified name. |
isPsuedoVarRef | public boolean isPsuedoVarRef()(Code) | | Tell if this is a psuedo variable reference, declared by Xalan instead
of by the user.
|
isStableNumber | public boolean isStableNumber()(Code) | | Tell if this expression returns a stable number that will not change during
iterations within the expression. This is used to determine if a proximity
position predicate can indicate that no more searching has to occur.
true if the expression represents a stable number. |
setIndex | public void setIndex(int index)(Code) | | Set the index for the variable into the stack. For advanced use only. You
must know what you are doing to use this.
Parameters: index - a global or local index. |
setIsGlobal | public void setIsGlobal(boolean isGlobal)(Code) | | Set whether or not this is a global reference. For advanced use only.
Parameters: isGlobal - true if this should be a global variable reference. |
setQName | public void setQName(QName qname)(Code) | | Set the qualified name of the variable.
Parameters: qname - Must be a non-null reference to a qualified name. |
Methods inherited from org.apache.xpath.Expression | public DTMIterator asIterator(XPathContext xctxt, int contextNode) throws javax.xml.transform.TransformerException(Code)(Java Doc) public DTMIterator asIteratorRaw(XPathContext xctxt, int contextNode) throws javax.xml.transform.TransformerException(Code)(Java Doc) public int asNode(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc) public void assertion(boolean b, java.lang.String msg)(Code)(Java Doc) public boolean bool(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc) public boolean canTraverseOutsideSubtree()(Code)(Java Doc) abstract public boolean deepEquals(Expression expr)(Code)(Java Doc) public void error(XPathContext xctxt, String msg, Object[] args) throws javax.xml.transform.TransformerException(Code)(Java Doc) public XObject execute(XPathContext xctxt, int currentNode) throws javax.xml.transform.TransformerException(Code)(Java Doc) public XObject execute(XPathContext xctxt, int currentNode, DTM dtm, int expType) throws javax.xml.transform.TransformerException(Code)(Java Doc) abstract public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc) public XObject execute(XPathContext xctxt, boolean destructiveOK) throws javax.xml.transform.TransformerException(Code)(Java Doc) public void executeCharsToContentHandler(XPathContext xctxt, ContentHandler handler) throws javax.xml.transform.TransformerException, org.xml.sax.SAXException(Code)(Java Doc) public void exprAddChild(ExpressionNode n, int i)(Code)(Java Doc) public ExpressionNode exprGetChild(int i)(Code)(Java Doc) public int exprGetNumChildren()(Code)(Java Doc) public ExpressionNode exprGetParent()(Code)(Java Doc) public void exprSetParent(ExpressionNode n)(Code)(Java Doc) abstract public void fixupVariables(java.util.Vector vars, int globalsSize)(Code)(Java Doc) public int getColumnNumber()(Code)(Java Doc) public ExpressionNode getExpressionOwner()(Code)(Java Doc) public int getLineNumber()(Code)(Java Doc) public String getPublicId()(Code)(Java Doc) public String getSystemId()(Code)(Java Doc) public boolean isNodesetExpr()(Code)(Java Doc) final protected boolean isSameClass(Expression expr)(Code)(Java Doc) public boolean isStableNumber()(Code)(Java Doc) public double num(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc) public void warn(XPathContext xctxt, String msg, Object[] args) throws javax.xml.transform.TransformerException(Code)(Java Doc) public XMLString xstr(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc)
|
|
|