public class StringLiteral extends Literal
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 |
---|
StringLiteral(CharSequence value,
Container container)
Create a StringLiteral that wraps any CharSequence (including, of course, a String)
|
StringLiteral(StringValue value,
Container container)
Create a StringLiteral that wraps a StringValue
|
Modifier and Type | Method and Description |
---|---|
Expression |
copy()
Copy an expression.
|
String |
getStringValue()
Get the string represented by this StringLiteral
|
addToPathMap, computeCardinality, computeSpecialProperties, effectiveBooleanValue, equals, evaluateAsString, evaluateItem, evaluatePendingUpdates, explain, getDependencies, getExpressionCompiler, getIntegerBounds, getItemType, getStreamingAdjunct, getValue, hashCode, isAtomic, isConstantBoolean, isConstantOne, isEmptySequence, isSubtreeExpression, isVacuousExpression, iterate, iterate, makeEmptySequence, makeLiteral, optimize, process, toPattern, toShortString, toString, typeCheck
adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, clearStreamabilityData, computeDependencies, computeStaticProperties, doPromotion, dynamicError, explain, getCardinality, getColumnNumber, getConfiguration, getConstructType, getContainer, getEvaluationMethod, getExpressionName, getHostLanguage, getImplementationMethod, getIntrinsicDependencies, getLineNumber, getLocationId, getObjectName, getPosture, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getStreamability, getSweep, getSystemId, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isIdentical, isUpdatingExpression, iterateEvents, makeStreamingAdjunct, markTailFunctionCalls, operandList, operands, promote, replaceOperand, resetLocalStaticProperties, setContainer, setEvaluationMethod, setFiltered, setFlattened, setLocationId, setPostureAndSweep, simplify, staticTypeCheck, suppressValidation, toStreamingPattern, typeError, unordered
public StringLiteral(StringValue value, Container container)
value
- the StringValuecontainer
- the container in the expression tree. Should not be null.
Saxon does not reject a null value for the container, but it may cause
subsequent failures if a container is not supplied at some stage.public StringLiteral(CharSequence value, Container container)
value
- the CharSequence to be wrappedcontainer
- the container in the expression tree. Should not be null.
Saxon does not reject a null value for the container, but it may cause
subsequent failures if a container is not supplied at some stage.public String getStringValue()
public Expression copy()
Literal
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.