|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.expr.flwor.Clause
net.sf.saxon.expr.flwor.LetClause
public class LetClause
A "let" clause in a FLWOR expression
| Field Summary |
|---|
| Fields inherited from class net.sf.saxon.expr.flwor.Clause |
|---|
COUNT, FOR, GROUPBYCLAUSE, LET, ORDERBYCLAUSE, WHERE, WINDOW |
| Constructor Summary | |
|---|---|
LetClause()
|
|
| Method Summary | |
|---|---|
LetClause |
copy()
|
void |
explain(ExpressionPresenter out)
Diagnostic print of expression structure. |
void |
gatherVariableReferences(ExpressionVisitor visitor,
Binding binding,
List<VariableReference> references)
Build a list of all references to a variables declared in this clause |
int |
getClauseKey()
Get a keyword identifying what kind of clause this is |
TuplePull |
getPullStream(TuplePull base,
XPathContext context)
Get a tuple stream that implements the functionality of this clause, taking its input from another tuple stream which this clause modifies |
TuplePush |
getPushStream(TuplePush destination,
XPathContext context)
Get a push-mode tuple stream that implements the functionality of this clause, supplying its output to another tuple stream |
LocalVariableBinding |
getRangeVariable()
|
LocalVariableBinding[] |
getRangeVariables()
Get the number of variables bound by this clause |
Expression |
getSequence()
|
void |
processSubExpressions(ExpressionProcessor processor)
Process the subexpressions of this clause |
void |
refineVariableType(ExpressionVisitor visitor,
List<VariableReference> references,
Expression returnExpr)
Supply improved type information to the expressions that contain references to the variables declared in this clause |
void |
refineVariableType(ItemType type,
int cardinality,
Value constantValue,
int properties,
ExpressionVisitor visitor)
Provide additional information about the type of the variable, typically derived by analyzing the initializer of the variable binding |
void |
setRangeVariable(LocalVariableBinding binding)
|
void |
setSequence(Expression sequence)
|
String |
toString()
|
void |
typeCheck(ExpressionVisitor visitor)
Type-check the expression |
| Methods inherited from class net.sf.saxon.expr.flwor.Clause |
|---|
optimize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LetClause()
| Method Detail |
|---|
public int getClauseKey()
Clause
getClauseKey in class Clausepublic LetClause copy()
copy in class Clausepublic void setSequence(Expression sequence)
public Expression getSequence()
public void setRangeVariable(LocalVariableBinding binding)
public LocalVariableBinding getRangeVariable()
public LocalVariableBinding[] getRangeVariables()
getRangeVariables in class Clause
public TuplePull getPullStream(TuplePull base,
XPathContext context)
getPullStream in class Clausebase - the input tuple streamcontext -
public TuplePush getPushStream(TuplePush destination,
XPathContext context)
getPushStream in class Clausedestination - the output tuple streamcontext -
public void processSubExpressions(ExpressionProcessor processor)
throws XPathException
processSubExpressions in class Clauseprocessor - the expression processor used to process the subexpressions
XPathException - if any error is detected
public void typeCheck(ExpressionVisitor visitor)
throws XPathException
typeCheck in class Clausevisitor - the ExpressionVisitor, providing access to static context information
XPathException - if any error is detected
public void gatherVariableReferences(ExpressionVisitor visitor,
Binding binding,
List<VariableReference> references)
Clause
gatherVariableReferences in class Clausevisitor - the expression visitorbinding - a variable declared in this clausereferences - the list of variable references, initially empty, to which the method will append
public void refineVariableType(ExpressionVisitor visitor,
List<VariableReference> references,
Expression returnExpr)
Clause
refineVariableType in class Clausevisitor - the expression visitorreferences - the list of variable referencesreturnExpr - the expression in the return clause
public void refineVariableType(ItemType type,
int cardinality,
Value constantValue,
int properties,
ExpressionVisitor visitor)
type - the item type of the variablecardinality - the cardinality of the variableconstantValue - the actual value of the variable, if this is known statically, otherwise nullproperties - additional static properties of the variable's initializervisitor - an ExpressionVisitorpublic void explain(ExpressionPresenter out)
explain in class Clauseout - the expression presenter used to display the structurepublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||