polyglot.lex
Class StringLiteral

java.lang.Object
  extended by polyglot.lex.Token
      extended by polyglot.lex.Literal
          extended by polyglot.lex.StringLiteral

public class StringLiteral
extends Literal

A token class for string literals.


Field Summary
protected  java.lang.String val
           
 
Fields inherited from class polyglot.lex.Token
position, symbol
 
Constructor Summary
StringLiteral(Position position, java.lang.String s, int sym)
           
 
Method Summary
 java.lang.String getValue()
           
 java.lang.String toString()
           
 
Methods inherited from class polyglot.lex.Token
escape, getPosition, symbol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

val

protected java.lang.String val
Constructor Detail

StringLiteral

public StringLiteral(Position position,
                     java.lang.String s,
                     int sym)
Method Detail

getValue

public java.lang.String getValue()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object