koala.dynamicjava.tree
Class StringLiteral

java.lang.Object
  extended by koala.dynamicjava.tree.Node
      extended by koala.dynamicjava.tree.Expression
          extended by koala.dynamicjava.tree.PrimaryExpression
              extended by koala.dynamicjava.tree.Literal
                  extended by koala.dynamicjava.tree.StringLiteral
All Implemented Interfaces:
SourceInfo.Wrapper

public class StringLiteral
extends Literal

This class represents the string literal nodes of the syntax tree

Version:
1.0 - 1999/04/24
Author:
Stephane Hillion

Constructor Summary
StringLiteral(String rep)
          Initializes a literal
StringLiteral(String rep, SourceInfo si)
          Initializes a literal
 
Method Summary
static String decodeString(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, toString
 
Methods inherited from class koala.dynamicjava.tree.Node
archiveProperties, getProperties, getProperty, getSourceInfo, hasProperty, setProperty, setSourceInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringLiteral

public StringLiteral(String rep)
Initializes a literal

Parameters:
rep - the representation of the literal

StringLiteral

public StringLiteral(String rep,
                     SourceInfo si)
Initializes a literal

Parameters:
rep - the representation of the literal
Method Detail

decodeString

public static String decodeString(String rep)
Decodes the representation of a Java literal string.

Parameters:
rep - the representation of the character
Returns:
the character represented by the given string