public class AdjacentTextNodeMerger extends UnaryExpression
operand
EFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, WATCH_METHOD
Constructor and Description |
---|
AdjacentTextNodeMerger(Expression p0) |
Modifier and Type | Method and Description |
---|---|
int |
computeCardinality()
Determine the static cardinality.
|
Expression |
copy()
Copy an expression.
|
ExpressionCompiler |
getExpressionCompiler()
Return the compiler relating to a particular expression
|
String |
getExpressionName()
Get a name identifying the kind of expression, in terms meaningful to a user.
|
int |
getImplementationMethod()
An implementation of Expression must provide at least one of the methods evaluateItem(), iterate(), or process().
|
ItemType |
getItemType()
Determine the data type of the expression, if possible.
|
protected OperandRole |
getOperandRole()
Get the usage (in terms of streamability analysis) of the single operand
|
AdjacentTextNodeMergerAdjunct |
getStreamingAdjunct()
Get a class that supports streamed evaluation of this expression
|
static boolean |
isTextNode(Item item)
Ask whether an item is a text node
|
SequenceIterator |
iterate(XPathContext context)
Return an Iterator to iterate over the values of a sequence.
|
static Expression |
makeAdjacentTextNodeMerger(Expression base)
Make an AdjacentTextNodeMerger expression with a given operand, or a simpler equivalent expression if appropriate
|
void |
process(XPathContext context,
int locationId,
int options)
Process the instruction, without returning any tail calls
|
Expression |
simplify(ExpressionVisitor visitor)
Simplify an expression.
|
Expression |
typeCheck(ExpressionVisitor visitor,
ContextItemStaticInfo contextInfo)
Type-check the expression.
|
computeSpecialProperties, displayOperator, equals, explain, getBaseExpression, hashCode, operands, optimize, promote, replaceOperand, toShortString, toString
addToPathMap, adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, clearStreamabilityData, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, evaluatePendingUpdates, explain, getCardinality, getColumnNumber, getConfiguration, getConstructType, getContainer, getDependencies, getEvaluationMethod, getHostLanguage, getIntegerBounds, getIntrinsicDependencies, getLineNumber, getLocationId, getObjectName, getPosture, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getStreamability, getSweep, getSystemId, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isIdentical, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterateEvents, makeStreamingAdjunct, markTailFunctionCalls, operandList, process, resetLocalStaticProperties, setContainer, setEvaluationMethod, setFiltered, setFlattened, setLocationId, setPostureAndSweep, staticTypeCheck, suppressValidation, toPattern, toStreamingPattern, typeError, unordered
public AdjacentTextNodeMerger(Expression p0)
public static Expression makeAdjacentTextNodeMerger(Expression base)
base
- the operand expressionprotected OperandRole getOperandRole()
UnaryExpression
getOperandRole
in class UnaryExpression
public Expression simplify(ExpressionVisitor visitor) throws XPathException
Expression
simplify
in class Expression
visitor
- an expression visitorXPathException
- if an error is discovered during expression
rewritingpublic Expression typeCheck(ExpressionVisitor visitor, ContextItemStaticInfo contextInfo) throws XPathException
UnaryExpression
typeCheck
in class UnaryExpression
visitor
- an expression visitorcontextInfo
- Information available statically about the context item: whether it is (possibly)
absent; its static type; its streaming posture.XPathException
- if an error is discovered during this phase
(typically a type error)public ItemType getItemType()
getItemType
in class UnaryExpression
public int computeCardinality()
UnaryExpression
computeCardinality
in class UnaryExpression
StaticProperty.ALLOWS_ZERO_OR_ONE
,
StaticProperty.EXACTLY_ONE
, StaticProperty.ALLOWS_ONE_OR_MORE
,
StaticProperty.ALLOWS_ZERO_OR_MORE
public Expression copy()
copy
in class Expression
public int getImplementationMethod()
getImplementationMethod
in class Expression
Expression.ITERATE_METHOD
or Expression.EVALUATE_METHOD
or
Expression.PROCESS_METHOD
public ExpressionCompiler getExpressionCompiler()
Expression
getExpressionCompiler
in class Expression
public AdjacentTextNodeMergerAdjunct getStreamingAdjunct()
Expression
getStreamingAdjunct
in class Expression
public SequenceIterator iterate(XPathContext context) throws XPathException
iterate
in class Expression
context
- supplies the context for evaluationXPathException
- if any dynamic error occurs evaluating the
expressionpublic void process(XPathContext context, int locationId, int options) throws XPathException
context
- The dynamic context, giving access to the current node,
the current variables, etc.XPathException
public String getExpressionName()
Expression
getExpressionName
in class Expression
public static boolean isTextNode(Item item)
item
- the item in questionCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.