koala.dynamicjava.tree
Class StringLiteral

java.lang.Object
  |
  +--koala.dynamicjava.tree.Node
        |
        +--koala.dynamicjava.tree.Expression
              |
              +--koala.dynamicjava.tree.PrimaryExpression
                    |
                    +--koala.dynamicjava.tree.Literal
                          |
                          +--koala.dynamicjava.tree.StringLiteral

public class StringLiteral
extends Literal

This class represents the string literal nodes of the syntax tree


Fields inherited from class koala.dynamicjava.tree.Literal
REPRESENTATION, TYPE, VALUE
 
Fields inherited from class koala.dynamicjava.tree.Node
BEGIN_COLUMN, BEGIN_LINE, END_COLUMN, END_LINE, FILENAME
 
Constructor Summary
StringLiteral(java.lang.String rep)
          Initializes a literal
StringLiteral(java.lang.String rep, java.lang.String fn, int bl, int bc, int el, int ec)
          Initializes a literal
 
Method Summary
static java.lang.String decodeString(java.lang.String rep)
          Decodes the representation of a Java literal string.
 
Methods inherited from class koala.dynamicjava.tree.Literal
acceptVisitor, getRepresentation, getType, getValue, setRepresentation, setType, setValue
 
Methods inherited from class koala.dynamicjava.tree.Node
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getFilename, getProperties, getProperty, hasProperty, removePropertyChangeListener, removePropertyChangeListener, setBeginColumn, setBeginLine, setEndColumn, setEndLine, setFilename, setProperty
 
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 rep)
Initializes a literal
Parameters:
rep - the representation of the literal
val - the value of this string

StringLiteral

public StringLiteral(java.lang.String rep,
                     java.lang.String fn,
                     int bl,
                     int bc,
                     int el,
                     int ec)
Initializes a literal
Parameters:
rep - the representation of the literal
val - the value of this string
fn - the filename
bl - the begin line
bc - the begin column
el - the end line
ec - the end column
Method Detail

decodeString

public static java.lang.String decodeString(java.lang.String rep)
Decodes the representation of a Java literal string. The input is not checked since this method always called on a string produced by the parser.
Parameters:
rep - the representation of the character
Returns:
the character represented by the given string


Copyright © 2001 Stephane Hillion. All Rights Reserved.