net.sf.saxon.expr

Class StringLiteral

public class StringLiteral extends Literal

Subclass of Literal used specifically for string literals, as this is a common case
Constructor Summary
StringLiteral(StringValue value)
Create a StringLiteral that wraps a StringValue
StringLiteral(CharSequence value)
Create a StringLiteral that wraps any CharSequence (including, of course, a String)
Method Summary
Expressioncopy()
StringgetStringValue()
Get the string represented by this StringLiteral

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

copy

public Expression copy()

getStringValue

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

Returns: the underlying string