|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.saxon.expr.ComputedExpression
net.sf.saxon.instruct.Instruction
net.sf.saxon.instruct.GeneralVariable
net.sf.saxon.instruct.GlobalVariable
A compiled global variable in a stylesheet or query.
| Field Summary |
| Fields inherited from class net.sf.saxon.instruct.GeneralVariable |
evaluationMode, nameCode, referenceCount, slotNumber |
| Fields inherited from class net.sf.saxon.expr.ComputedExpression |
locationId, staticProperties |
| Fields inherited from interface net.sf.saxon.expr.Expression |
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
| Constructor Summary | |
GlobalVariable()
|
|
| Method Summary | |
ValueRepresentation |
evaluateVariable(XPathContext context)
Evaluate the variable |
Executable |
getExecutable()
Get the executable containing this expression |
int |
getHostLanguage()
Get the host language (XSLT, XQuery, XPath) used to implement the code in this container |
InstructionInfo |
getInstructionInfo()
Get InstructionInfo for this expression |
ValueRepresentation |
getSelectValue(XPathContext context)
Evaluate the variable. |
boolean |
isGlobal()
Is this a global variable? |
void |
lookForCycles(java.util.Stack referees)
Check for cycles in this variable definition |
TailCall |
processLeavingTail(XPathContext context)
Process the variable declaration |
void |
setContainsLocals(SlotManager map)
The expression that initializes a global variable may itself use local variables. |
void |
setExecutable(Executable executable)
|
void |
setHostLanguage(int language)
|
| Methods inherited from class net.sf.saxon.instruct.Instruction |
appendItem, assembleParams, assembleTunnelParams, computeCardinality, computeSpecialProperties, createsNewNodes, dynamicError, evaluateAsString, getImplementationMethod, getSourceLocator, isXSLT, process, promote |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.xml.transform.SourceLocator |
getColumnNumber, getLineNumber, getPublicId, getSystemId |
| Constructor Detail |
public GlobalVariable()
| Method Detail |
public Executable getExecutable()
ComputedExpression
getExecutable in interface ContainergetExecutable in class ComputedExpressionpublic void setExecutable(Executable executable)
public void setHostLanguage(int language)
public int getHostLanguage()
ComputedExpression
getHostLanguage in interface ContainergetHostLanguage in class ComputedExpressionConfiguration.XSLT or Configuration.XQUERYpublic void setContainsLocals(SlotManager map)
map - The stack frame map for local variables used while evaluating this global
variable.public boolean isGlobal()
isGlobal in interface BindingisGlobal in class GeneralVariable
public void lookForCycles(java.util.Stack referees)
throws StaticError
referees - the calls leading up to this one; it's an error if this variable is on the
stack, because that means it calls itself directly or indirectly. The stack may contain
variable definitions (GlobalVariable objects) and user-defined functions (UserFunction objects).
It will never contain the same object more than once.
StaticError
public TailCall processLeavingTail(XPathContext context)
throws XPathException
processLeavingTail in interface TailCallReturnerprocessLeavingTail in class Instructioncontext - The dynamic context of the transformation, giving access to the current node,
the current variables, etc.
XPathException
public ValueRepresentation getSelectValue(XPathContext context)
throws XPathException
getSelectValue in class GeneralVariableXPathException
public ValueRepresentation evaluateVariable(XPathContext context)
throws XPathException
XPathExceptionpublic InstructionInfo getInstructionInfo()
getInstructionInfo in interface InstructionInfoProvidergetInstructionInfo in class Instruction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||