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(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) |
static boolean |
isTransmitter(Expression exp) |
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)
public static Expression rewriteForExpressionAsMappingExpression(ForExpression forEx)
public static PostureAndSweep generalStreamabilityRules(Iterable<Operand> operands, boolean allowExtensions, ContextItemStaticInfo contextInfo, List<String> reasons)
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)
public static boolean isTransmitter(Expression exp)
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.