net.sf.saxon.functions
public class UnparsedText extends SystemFunction implements XSLTFunction
Modifier and Type | Field and Description |
---|---|
static int |
UNPARSED_TEXT |
static int |
UNPARSED_TEXT_AVAILABLE |
operation
argument
EVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticProperties
Constructor and Description |
---|
UnparsedText() |
Modifier and Type | Method and Description |
---|---|
void |
checkArguments(ExpressionVisitor visitor)
Method called during static type checking
|
Item |
evaluateItem(XPathContext context)
This method handles evaluation of the function:
it returns a StringValue in the case of unparsed-text(), or a BooleanValue
in the case of unparsed-text-available()
|
static void |
main(java.lang.String[] args) |
Expression |
preEvaluate(ExpressionVisitor visitor)
preEvaluate: this method suppresses compile-time evaluation by doing nothing
|
addContextDocumentArgument, addDocToPathMap, computeCardinality, computeSpecialProperties, copy, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, makeSystemFunction, optimize, setDetails, useContextItemAsDefault
addExternalFunctionCallToPathMap, checkArgumentCount, equals, explain, getArguments, getDisplayName, getFunctionName, getNumberOfArguments, hashCode, iterateSubExpressions, promote, replaceSubExpression, setArguments, setFunctionName, simplify, simplifyArguments, toString, typeCheck
addToPathMap, adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, computeDependencies, computeStaticProperties, display, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluatePendingUpdates, explain, findParentOf, getCardinality, getColumnNumber, getColumnNumber, getConstructType, getContainer, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getIntrinsicDependencies, getLineNumber, getLineNumber, getLocationId, getLocationProvider, getObjectName, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, isUpdatingExpression, iterate, iterateEvents, markTailFunctionCalls, process, resetLocalStaticProperties, setContainer, setFiltered, setFlattened, setLocationId, staticTypeCheck, suppressValidation, typeError
public static final int UNPARSED_TEXT
public static final int UNPARSED_TEXT_AVAILABLE
public void checkArguments(ExpressionVisitor visitor) throws XPathException
SystemFunction
checkArguments
in class SystemFunction
visitor
- the expression visitorXPathException
public Expression preEvaluate(ExpressionVisitor visitor)
preEvaluate
in class FunctionCall
visitor
- an expression visitorpublic Item evaluateItem(XPathContext context) throws XPathException
evaluateItem
in interface EvaluableItem
evaluateItem
in class Expression
context
- The context in which the expression is to be evaluatedXPathException
- if any dynamic error occurs evaluating the
expressionpublic static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception