|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.expr.RangeVariableDeclaration
public class RangeVariableDeclaration
Represents the defining occurrence of a variable declared for local use within an expression, for example the $x in "for $x in ...". This object is used only at compile-time. In XQuery (but not in XSLT) this class is also used to represent the formal arguments of a function.
Field Summary | |
---|---|
static int |
FILTERED
|
Constructor Summary | |
---|---|
RangeVariableDeclaration()
|
Method Summary | |
---|---|
boolean |
allReferencesAreAtomized()
Determine whether all references to this variable are using the value either (a) by atomizing it, or (b) by taking its string value. |
void |
fixupReferences(Binding binding)
|
int |
getNameCode()
Get the name of the variable, as a namepool name code |
int |
getReferenceCount(Binding binding,
StaticContext env)
Determine how often the range variable is referenced. |
static int |
getReferenceCount(List references,
Binding binding,
StaticContext env,
boolean removeUnbound)
Determine how often a variable is referenced. |
List |
getReferenceList()
|
SequenceType |
getRequiredType()
Get the required type (declared type) of the variable |
String |
getVariableName()
Get the name of the variable for use in diagnostics - a lexical QName |
void |
refineTypeInformation(ItemType type,
int cardinality,
Value constantValue,
int properties,
StaticContext env)
|
void |
registerReference(BindingReference ref)
Method called by a BindingReference to register the variable reference for subsequent fixup. |
void |
setNameCode(int nameCode)
Set the name of the variable, as a namepool name code |
void |
setReferenceList(List references)
|
void |
setRequiredType(SequenceType requiredType)
Set the required type (declared type) of the variable |
void |
setVariableName(String variableName)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FILTERED
Constructor Detail |
---|
public RangeVariableDeclaration()
Method Detail |
---|
public void setNameCode(int nameCode)
nameCode
- public int getNameCode()
getNameCode
in interface VariableDeclaration
public SequenceType getRequiredType()
public void setRequiredType(SequenceType requiredType)
requiredType
- the required typepublic void setVariableName(String variableName)
public String getVariableName()
VariableDeclaration
getVariableName
in interface VariableDeclaration
public void registerReference(BindingReference ref)
VariableDeclaration
registerReference
in interface VariableDeclaration
public void setReferenceList(List references)
public List getReferenceList()
public boolean allReferencesAreAtomized()
public int getReferenceCount(Binding binding, StaticContext env)
binding
- the variable bindingenv
-
public static int getReferenceCount(List references, Binding binding, StaticContext env, boolean removeUnbound)
references
- a list of references to a variable binding: each item in this list
must be a VariableReference objectbinding
- the variable bindingremoveUnbound
-
public void fixupReferences(Binding binding)
public void refineTypeInformation(ItemType type, int cardinality, Value constantValue, int properties, StaticContext env)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |