| Modifier and Type | Field and Description |
|---|---|
| private boolean | m_fixUpWasCalled
Tell if fixupVariables was called. |
| protected int | m_index
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. |
| protected boolean | |
| protected QName | m_qname
The qualified name of the variable. |
| pack-priv static final String | |
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | callVisitors(ExpressionOwner owner, XPathVisitor visitor)
Implements com. This will traverse the heararchy, calling the visitor for each member. |
| public boolean | deepEquals(Expression expr)
Implements abstract com. Compare this object with another object and see if they are equal, include the sub heararchy. |
| public XObject | Returns: The result of the expression in the form of aXObject.The XPath runtime context. xctxt)Implements abstract com. Execute an expression in the XPath runtime context, and return the result of the expression. |
| public XObject | Returns: The evaluated variable, or an empty nodeset if not found.The runtime execution context. xctxt, boolean destructiveOK)Overrides com. Dereference the variable, and return the reference value. |
| public void | fixupVariables(List<QName>
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). vars, int globalsSize)Implements abstract com. This function is used to fixup variables from QNames to stack frame indexes at stylesheet build time. |
| public int | Returns: One of WalkerFactory#BIT_DESCENDANT, etc.Implements com. Get the analysis bits for this walker, as defined in the WalkerFactory. |
| public boolean | Returns: true if this should be a global variable reference.Set the index for the variable into the stack. |
| public int | |
| public QName | |
| public boolean | isPsuedoVarRef()
Tell if this is a psuedo variable reference, declared by Xalan instead of by the user. |
| public boolean | Returns: true if the expression represents a stable number.Overrides com. Tell if this expression returns a stable number that will not change during iterations within the expression. |
| public void | |
| public void | setIsGlobal(boolean
true if this should be a global variable reference. isGlobal)Set whether or not this is a global reference. |
| public void |
| m_fixUpWasCalled | back to summary |
|---|---|
| private boolean m_fixUpWasCalled Tell if fixupVariables was called. | |
| m_index | back to summary |
|---|---|
| protected int m_index 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 | back to summary |
|---|---|
| protected boolean m_isGlobal | |
| m_qname | back to summary |
|---|---|
| protected QName m_qname The qualified name of the variable. | |
| PSUEDOVARNAMESPACE | back to summary |
|---|---|
| pack-priv static final String PSUEDOVARNAMESPACE | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID Hides com. | |
| Variable | back to summary |
|---|---|
| public Variable() | |
| callVisitors | back to summary |
|---|---|
| public void callVisitors(ExpressionOwner owner, XPathVisitor visitor) Implements com. Doc from com. This will traverse the heararchy, calling the visitor for each member. If the called visitor method returns false, the subtree should not be called. | |
| deepEquals | back to summary |
|---|---|
| public boolean deepEquals(Expression expr) Implements abstract com. Doc from com. Compare this object with another object and see if they are equal, include the sub heararchy.
| |
| execute | back to summary |
|---|---|
| public XObject execute(XPathContext xctxt) throws TransformerException Implements abstract com. Execute an expression in the XPath runtime context, and return the result of the expression.
| |
| execute | back to summary |
|---|---|
| public XObject execute(XPathContext xctxt, boolean destructiveOK) throws TransformerException Overrides com. Dereference the variable, and return the reference value. Note that lazy evaluation will occur. If a variable within scope is not found, a warning will be sent to the error listener, and an empty nodeset will be returned.
| |
| fixupVariables | back to summary |
|---|---|
| public void fixupVariables(List<QName> vars, int globalsSize) Implements abstract com. This function is used to fixup variables from QNames to stack frame indexes at stylesheet build time.
| |
| getAnalysisBits | back to summary |
|---|---|
| public int getAnalysisBits() Implements com. Get the analysis bits for this walker, as defined in the WalkerFactory.
| |
| getGlobal | back to summary |
|---|---|
| public boolean getGlobal() Set the index for the variable into the stack. For advanced use only.
| |
| getIndex | back to summary |
|---|---|
| public int getIndex() Set the index for the variable into the stack. For advanced use only.
| |
| getQName | back to summary |
|---|---|
| public QName getQName() Get the qualified name of the variable.
| |
| isPsuedoVarRef | back to summary |
|---|---|
| public boolean isPsuedoVarRef() Tell if this is a psuedo variable reference, declared by Xalan instead of by the user. | |
| isStableNumber | back to summary |
|---|---|
| public boolean isStableNumber() Overrides com. 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.
| |
| setIndex | back to summary |
|---|---|
| public void setIndex(int index) Set the index for the variable into the stack. For advanced use only. You must know what you are doing to use this.
| |
| setIsGlobal | back to summary |
|---|---|
| public void setIsGlobal(boolean isGlobal) Set whether or not this is a global reference. For advanced use only.
| |
| setQName | back to summary |
|---|---|
| public void setQName(QName qname) Set the qualified name of the variable.
| |