net.sf.saxon.expr
Class StringLiteral

java.lang.Object
  extended by net.sf.saxon.expr.Expression
      extended by net.sf.saxon.expr.Literal
          extended by 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

Field Summary
 
Fields inherited from class net.sf.saxon.expr.Expression
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
 
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
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
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

getStringValue

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

Returns:
the underlying string


Copyright (C) Michael H. Kay. All rights reserved.