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:
java.io.Serializable
,javax.xml.transform.SourceLocator
,LocationProvider
,SaxonLocator
,EvaluableItem
,SequenceIterable
,InstructionInfo
,org.xml.sax.Locator
public class StringLiteral extends Literal
Subclass of Literal used specifically for string literals, as this is a common case- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class net.sf.saxon.expr.Expression
EVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticProperties
-
-
Constructor Summary
Constructors Constructor Description StringLiteral(java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
copy()
Copy an expression.java.lang.String
getStringValue()
Get the string represented by this StringLiteral-
Methods 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 Detail
-
StringLiteral
public StringLiteral(StringValue value)
Create a StringLiteral that wraps a StringValue- Parameters:
value
- the StringValue
-
StringLiteral
public StringLiteral(java.lang.CharSequence value)
Create a StringLiteral that wraps any CharSequence (including, of course, a String)- Parameters:
value
- the CharSequence to be wrapped
-
-
Method Detail
-
getStringValue
public java.lang.String getStringValue()
Get the string represented by this StringLiteral- Returns:
- the underlying string
-
copy
public Expression copy()
Description copied from class:Literal
Copy an expression. This makes a deep copy.
-
-