Package net.sf.saxon.expr
Class StringLiteral
java.lang.Object
net.sf.saxon.expr.Expression
net.sf.saxon.expr.Literal
net.sf.saxon.expr.StringLiteral
- All Implemented Interfaces:
Serializable
,SourceLocator
,LocationProvider
,SaxonLocator
,EvaluableItem
,SequenceIterable
,InstructionInfo
,Locator
Subclass of Literal used specifically for string literals, as this is a common case
- See Also:
-
Field Summary
Fields inherited from class net.sf.saxon.expr.Expression
EVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticProperties
-
Constructor Summary
ConstructorsConstructorDescriptionStringLiteral
(CharSequence value) Create a StringLiteral that wraps any CharSequence (including, of course, a String)StringLiteral
(StringValue value) Create a StringLiteral that wraps a StringValue -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Copy an expression.Get the string represented by this StringLiteralMethods inherited from class net.sf.saxon.expr.Literal
addToPathMap, computeCardinality, computeSpecialProperties, effectiveBooleanValue, equals, evaluateAsString, evaluateItem, evaluatePendingUpdates, explain, getDependencies, getItemType, getValue, hashCode, isAtomic, isConstantBoolean, isConstantOne, isEmptySequence, iterate, makeEmptySequence, makeLiteral, optimize, process, simplify, toString, typeCheck
Methods inherited from class net.sf.saxon.expr.Expression
adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, computeDependencies, computeStaticProperties, display, doPromotion, dynamicError, explain, findParentOf, getCardinality, getColumnNumber, getColumnNumber, getConstructType, getContainer, getExecutable, getHostLanguage, getImplementationMethod, getIntrinsicDependencies, getLineNumber, getLineNumber, getLocationId, getLocationProvider, getObjectName, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, isUpdatingExpression, iterateEvents, iterateSubExpressions, markTailFunctionCalls, promote, replaceSubExpression, resetLocalStaticProperties, setContainer, setFiltered, setFlattened, setLocationId, staticTypeCheck, suppressValidation, typeError
-
Constructor Details
-
StringLiteral
Create a StringLiteral that wraps a StringValue- Parameters:
value
- the StringValue
-
StringLiteral
Create a StringLiteral that wraps any CharSequence (including, of course, a String)- Parameters:
value
- the CharSequence to be wrapped
-
-
Method Details