public class OperandRole extends Object
Modifier and Type | Field and Description |
---|---|
static OperandRole |
ATOMIC_SEQUENCE |
static OperandRole |
FOCUS_CONTROLLED_ACTION |
static OperandRole |
FOCUS_CONTROLLING_SELECT |
static int |
HIGHER_ORDER |
static int |
IN_CHOICE_GROUP |
static OperandRole |
INSPECT |
static OperandRole |
NAVIGATE |
static OperandRole |
NEW_FOCUS_ATOMIC |
static OperandRole |
SAME_FOCUS_ACTION |
static int |
SETS_NEW_FOCUS |
static OperandRole |
SINGLE_ATOMIC |
static int |
USES_NEW_FOCUS |
Constructor and Description |
---|
OperandRole(int properties,
OperandUsage usage) |
OperandRole(int properties,
OperandUsage usage,
SequenceType requiredType) |
Modifier and Type | Method and Description |
---|---|
SequenceType |
getRequiredType()
Get the required type of the operand
|
static OperandUsage |
getTypeDeterminedUsage(ItemType type)
Static method to get the type-determined usage for a particular ItemType
|
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 the focus for evaluation of other child expressions
|
public static final int SETS_NEW_FOCUS
public static final int USES_NEW_FOCUS
public static final int HIGHER_ORDER
public static final int IN_CHOICE_GROUP
public static final OperandRole SAME_FOCUS_ACTION
public static final OperandRole FOCUS_CONTROLLING_SELECT
public static final OperandRole FOCUS_CONTROLLED_ACTION
public static final OperandRole INSPECT
public static final OperandRole NAVIGATE
public static final OperandRole SINGLE_ATOMIC
public static final OperandRole ATOMIC_SEQUENCE
public static final OperandRole NEW_FOCUS_ATOMIC
public OperandRole(int properties, OperandUsage usage)
public OperandRole(int properties, OperandUsage usage, SequenceType requiredType)
public boolean setsNewFocus()
public boolean hasSameFocus()
public boolean isEvaluatedRepeatedly()
public OperandUsage getUsage()
public SequenceType getRequiredType()
public boolean isInChoiceGroup()
public static OperandUsage getTypeDeterminedUsage(ItemType type)
type
- the required typeCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.