public class Operand extends Object
Modifier and Type | Field and Description |
---|---|
Expression |
expression |
Constructor and Description |
---|
Operand(Expression expression,
OperandRole role)
Create an operand object
|
Modifier and Type | Method and Description |
---|---|
Expression |
getExpression()
Get the expression used as the actual operand
|
SequenceType |
getRequiredType()
Get the required type of the operand
|
OperandUsage |
getUsage()
Get the usage of the operand
|
boolean |
hasSameFocus()
Ask whether the child expression is evaluated with the same focus as its parent expression
|
boolean |
isEvaluatedRepeatedly()
Ask whether the operand is a higher-order operand, in the sense that the child expression
is evaluated repeatedly during a single evaluation of the parent expression
|
boolean |
isInChoiceGroup()
Ask whether the operand is a member of a choice group
|
boolean |
setsNewFocus()
Ask whether the child expression sets a new focus for evaluation of other operands
|
public Expression expression
public Operand(Expression expression, OperandRole role)
expression
- the actual expression used as the operandrole
- information about the role this operand plays within the parent expressionpublic Expression getExpression()
public boolean setsNewFocus()
public boolean hasSameFocus()
public boolean isEvaluatedRepeatedly()
public OperandUsage getUsage()
public SequenceType getRequiredType()
public boolean isInChoiceGroup()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.