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, EvaluableItem, SequenceIterable, InstructionInfoProvider
public class StringLiteral
- extends Literal
Subclass of Literal used specifically for string literals, as this is a common case
- See Also:
- Serialized Form
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 |
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, display, doPromotion, explain, findParentOf, getCardinality, getColumnNumber, getContainer, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, iterateEvents, iterateSubExpressions, markTailFunctionCalls, promote, replaceSubExpression, setContainer, setFiltered, setFlattened, setLocationId, staticTypeCheck, suppressValidation |
StringLiteral
public StringLiteral(StringValue value)
- Create a StringLiteral that wraps a StringValue
- Parameters:
value
- the StringValue
StringLiteral
public StringLiteral(CharSequence value)
- Create a StringLiteral that wraps any CharSequence (including, of course, a String)
- Parameters:
value
- the CharSequence to be wrapped
getStringValue
public String getStringValue()
- Get the string represented by this StringLiteral
- Returns:
- the underlying string
Copyright (C) Michael H. Kay. All rights reserved.