All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----openjava.ptree.PtreeObject | +----openjava.ptree.Leaf | +----openjava.ptree.Literal
Literal class
represents
a literal.
Literal
class
from the boolean.
Literal
class
from the character.
Literal
class
from the number.
Literal
class
from the number.
Literal
class
from the number.
Literal
class
from the number.
Literal
class
from the string.
public static final int TRUE
public static final int FALSE
public static final int STRING
public static final int NUMBER
public static final int CHARACTER
public Literal(int id)
public Literal(int id, String str)
String
literal like
"test"
,
call this constructor in the form :
new Literal( Literal.STRING, "\"test\"" )
public int getKind()
public int getID()
public static Literal makeLiteral(String str)
Literal
class
from the string.
public static Literal makeLiteral(boolean b)
Literal
class
from the boolean.
public static Literal makeLiteral(char c)
Literal
class
from the character.
public static Literal makeLiteral(int num)
Literal
class
from the number.
public static Literal makeLiteral(long num)
Literal
class
from the number.
public static Literal makeLiteral(float num)
Literal
class
from the number.
public static Literal makeLiteral(double num)
Literal
class
from the number.
All Packages Class Hierarchy This Package Previous Next Index