org.ucl.xpath.ast
Class StringLiteral

java.lang.Object
  extended byorg.ucl.xpath.ast.XPathNode
      extended byorg.ucl.xpath.ast.PrimaryExpr
          extended byorg.ucl.xpath.ast.Literal
              extended byorg.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
 
Method Summary
 java.lang.Object accept(XPathVisitor v)
          Support for Visitor interface.
 java.lang.String string()
           
 XSString value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringLiteral

public StringLiteral(java.lang.String value)
Constructor for StringLiteral

Parameters:
value - string value
Method Detail

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