net.sf.saxon.expr
public class RangeVariableDeclaration extends Object implements VariableDeclaration
Field Summary | |
---|---|
static int | FILTERED |
Method Summary | |
---|---|
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() |
void | refineTypeInformation(ItemType type, int cardinality, Value constantValue, int properties, StaticContext env) |
void | registerReference(BindingReference ref) |
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) |
Returns: the nameCode
Parameters: binding the variable binding env
Returns: the number of references. The only interesting values are 0, 1, and "many" (represented by any value >1).
Parameters: references a list of references to a variable binding: each item in this list must be a VariableReference object binding the variable binding removeUnbound
Returns: the number of references. The interesting values are 0, 1, "many" (represented by any value >1), and the special value FILTERED, which indicates that there are multiple references and one or more of them is of the form $x[....] indicating that an index might be useful.
Returns: the required type
Parameters: nameCode
Parameters: requiredType the required type