|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.expr.PositionVariable
public class PositionVariable
Represents the defining occurrence of the position variable in a for expression within an expression, for example the $p in "for $x at $p in ...".
Constructor Summary | |
---|---|
PositionVariable()
Create a RangeVariable |
Method Summary | |
---|---|
ValueRepresentation |
evaluateVariable(XPathContext context)
Get the value of the range variable |
int |
getLocalSlotNumber()
If this is a local variable held on the local stack frame, return the corresponding slot number. |
SequenceType |
getRequiredType()
Get the required type (declared type) of the variable |
StructuredQName |
getVariableQName()
Get the name of the variable, as a namepool name code |
boolean |
isAssignable()
Test whether it is permitted to assign to the variable using the saxon:assign extension element. |
boolean |
isGlobal()
Indicate whether the binding is local or global. |
void |
setSlotNumber(int nr)
Set the slot number for the range variable |
void |
setVariableQName(StructuredQName variableName)
Set the name of the variable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PositionVariable()
Method Detail |
---|
public StructuredQName getVariableQName()
getVariableQName
in interface Binding
public SequenceType getRequiredType()
getRequiredType
in interface Binding
public void setVariableQName(StructuredQName variableName)
variableName
- the name of the variablepublic void setSlotNumber(int nr)
nr
- the slot number to be usedpublic int getLocalSlotNumber()
getLocalSlotNumber
in interface Binding
public ValueRepresentation evaluateVariable(XPathContext context) throws XPathException
evaluateVariable
in interface Binding
context
- the XPath dynamic evaluation context
XPathException
public boolean isAssignable()
isAssignable
in interface Binding
public boolean isGlobal()
isGlobal
in interface Binding
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |