public class Streamability extends Object
Modifier and Type | Field and Description |
---|---|
static int |
EXTENDED |
static int |
OFF |
static int |
STANDARD |
Constructor and Description |
---|
Streamability() |
Modifier and Type | Method and Description |
---|---|
static PostureAndSweep |
generalStreamabilityRules(Expression target,
Iterable<Operand> operands,
boolean allowExtensions,
ContextItemStaticInfo contextInfo,
List<String> reasons)
Implement the general streamability rules; the rules used to determine the posture and sweep of any
expression except when more specific rules are defined for that class of expression
|
static Operand |
getConsumingOperand(Expression exp)
Get the consuming (or potentially consuming) operand of an expression, assuming there is exactly one
|
static boolean |
isChildlessNodeKind(ItemType type)
Ask whether an ItemType only allows nodes that cannot have children
|
static Expression |
rewriteForExpressionAsMappingExpression(ForExpression forEx) |
static Expression |
rewriteQuantifiedExpressionAsFilterExpression(QuantifiedExpression quant) |
public static final int OFF
public static final int STANDARD
public static final int EXTENDED
public static Operand getConsumingOperand(Expression exp)
exp
- the expressionpublic static Expression rewriteQuantifiedExpressionAsFilterExpression(QuantifiedExpression quant) throws XPathException
XPathException
public static Expression rewriteForExpressionAsMappingExpression(ForExpression forEx)
public static PostureAndSweep generalStreamabilityRules(Expression target, Iterable<Operand> operands, boolean allowExtensions, ContextItemStaticInfo contextInfo, List<String> reasons)
target
- the expression whose streamability is being analyzed (used only for diagnosics)operands
- the operands of the expression being evaluatedallowExtensions
- true if Saxon streamability extensions are allowedcontextInfo
- information about the static context item type and posturereasons
- (optionally null) an array to which explanations of non-streamability should
be appendedpublic static boolean isChildlessNodeKind(ItemType type)
type
- the item typeCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.