net.sf.saxon.expr

Class StringLiteral

Implemented Interfaces:
EvaluableItem, InstructionInfoProvider, SequenceIterable, Serializable, SourceLocator

public class StringLiteral
extends Literal

Subclass of Literal used specifically for string literals, as this is a common case

Field Summary

Fields inherited from class net.sf.saxon.expr.Expression

EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD, locationId, staticProperties

Constructor Summary

StringLiteral(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

String
getStringValue()
Get the string represented by this StringLiteral

Methods inherited from class net.sf.saxon.expr.Literal

addToPathMap, computeCardinality, computeSpecialProperties, copy, effectiveBooleanValue, equals, evaluateAsString, evaluateItem, 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

addToPathMap, adoptChildExpression, checkPermittedContents, computeCardinality, computeDependencies, computeSpecialProperties, computeStaticProperties, copy, display, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, explain, explain, findParentOf, getCardinality, getColumnNumber, getConstructType, getContainer, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getIntrinsicDependencies, getItemType, getLineNumber, getLocationId, getLocationProvider, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, iterate, iterateEvents, iterateSubExpressions, markTailFunctionCalls, optimize, process, promote, replaceSubExpression, resetLocalStaticProperties, setContainer, setFiltered, setFlattened, setLocationId, simplify, staticTypeCheck, suppressValidation, toString, typeCheck, typeError

Constructor Details

StringLiteral

public StringLiteral(CharSequence value)
Create a StringLiteral that wraps any CharSequence (including, of course, a String)
Parameters:
value - the CharSequence to be wrapped

StringLiteral

public StringLiteral(StringValue value)
Create a StringLiteral that wraps a StringValue
Parameters:
value - the StringValue

Method Details

getStringValue

public String getStringValue()
Get the string represented by this StringLiteral
Returns:
the underlying string