org.ucl.xpath.ast
Class StringLiteral
java.lang.Object
org.ucl.xpath.ast.XPathNode
org.ucl.xpath.ast.PrimaryExpr
org.ucl.xpath.ast.Literal
org.ucl.xpath.ast.StringLiteral
- public class StringLiteral
- extends Literal
The value of a string literal is an atomic value whose type
is xs:string and whose value is the string denoted by the characters
between the delimiting apostrophes or quotation marks. If the literal
is delimited by apostrophes, two adjacent apostrophes within the literal
are interpreted as a single apostrophe. Similarly, if the literal is delimited
by quotation marks, two adjacent quotation marks within the literal are
interpreted as one quotation mark
Constructor Summary |
StringLiteral(java.lang.String value)
Constructor for StringLiteral |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringLiteral
public StringLiteral(java.lang.String value)
- Constructor for StringLiteral
- Parameters:
value
- string value
accept
public java.lang.Object accept(XPathVisitor v)
- Support for Visitor interface.
- Specified by:
accept
in class XPathNode
- Returns:
- Result of Visitor operation.
string
public java.lang.String string()
- Returns:
- string value
value
public XSString value()
- Returns:
- xs:string value