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
- 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
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
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