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
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.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 |
StringLiteral
public StringLiteral(java.lang.String rep)
- Initializes a literal
- Parameters:
rep
- the representation of the literalval
- 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 literalval
- the value of this stringfn
- the filenamebl
- the begin linebc
- the begin columnel
- the end lineec
- the end column
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.