public class DeepEqual extends CollatingFunction
| Modifier and Type | Field and Description |
|---|---|
static int |
COMPARE_ANNOTATIONS
Flag indicating that elements and attributes must have the same type annotation to be considered
deep-equal
|
static int |
COMPARE_STRING_VALUES
Flag indicating that elements and attributes should always be compared according to their string
value, not their typed value
|
static int |
EXCLUDE_WHITESPACE_TEXT_NODES
Flag indicating that whitespace text nodes are ignored when comparing element nodes
|
static int |
INCLUDE_COMMENTS
Flag indicating that comment children are taken into account when comparing element or document nodes
|
static int |
INCLUDE_NAMESPACES
Flag indicating that two elements should only be considered equal if they have the same
in-scope namespaces
|
static int |
INCLUDE_PREFIXES
Flag indicating that two element or attribute nodes are considered equal only if their
names use the same namespace prefix
|
static int |
INCLUDE_PROCESSING_INSTRUCTIONS
Flag indicating that processing instruction nodes are taken into account when comparing element or document nodes
|
static int |
JOIN_ADJACENT_TEXT_NODES
Flag indicating that adjacent text nodes in the top-level sequence are to be merged
|
static int |
WARNING_IF_FALSE
Flag indicating that a warning message explaining the reason why the sequences were deemed non-equal
should be sent to the ErrorListener
|
collationoperationargumentlocationId, staticPropertiesEVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD| Constructor and Description |
|---|
DeepEqual() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
deepEquals(SequenceIterator op1,
SequenceIterator op2,
GenericAtomicComparer collator,
Configuration config,
int flags)
Determine when two sequences are deep-equal
|
Item |
evaluateItem(XPathContext context)
Evaluate the expression
|
Expression |
preEvaluate(StaticContext env)
preEvaluate: if all arguments are known statically, evaluate early
|
checkArguments, getAtomicComparer, getCollatoraddContextDocumentArgument, computeCardinality, computeSpecialProperties, display, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, main, makeSystemFunction, setDetails, useContextItemAsDefaultcheckArgumentCount, getArguments, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, optimize, promote, replaceSubExpression, setArguments, setFunctionNameCode, simplify, simplifyArguments, typeCheckadoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, iterate, markTailFunctionCalls, process, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation, typeErrorpublic static final int INCLUDE_NAMESPACES
public static final int INCLUDE_PREFIXES
public static final int INCLUDE_COMMENTS
public static final int INCLUDE_PROCESSING_INSTRUCTIONS
public static final int EXCLUDE_WHITESPACE_TEXT_NODES
public static final int COMPARE_STRING_VALUES
public static final int COMPARE_ANNOTATIONS
public static final int WARNING_IF_FALSE
public static final int JOIN_ADJACENT_TEXT_NODES
public Expression preEvaluate(StaticContext env) throws XPathException
preEvaluate in class FunctionCallXPathExceptionpublic Item evaluateItem(XPathContext context) throws XPathException
evaluateItem in interface ExpressionevaluateItem in class ComputedExpressioncontext - The context in which the expression is to be evaluatedXPathException - if any dynamic error occurs evaluating the
expressionpublic static boolean deepEquals(SequenceIterator op1, SequenceIterator op2, GenericAtomicComparer collator, Configuration config, int flags)
op1 - the first sequenceop2 - the second sequencecollator - the collator to be usedconfig - the configuration (gives access to the NamePool)flags - bit-significant integer giving comparison options. Always zero for standard
F+O deep-equals comparison.