gnu.expr
Class Literal
java.lang.Object
gnu.expr.Literal
public class Literal
- extends java.lang.Object
A Literal contains compile-time information about a constant.
Constructor Summary |
Literal(java.lang.Object value,
Field field,
LitTable litTable)
Create a new Literal, for a value available from a static field. |
Literal(java.lang.Object value,
LitTable litTable)
Create a new Literal, where comp must be in immediate mode. |
Literal(java.lang.Object value,
java.lang.String name,
LitTable litTable)
|
Literal(java.lang.Object value,
Type type,
LitTable litTable)
|
Method Summary |
java.lang.Object |
getValue()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
field
public Field field
type
public Type type
flags
public int flags
nullLiteral
public static final Literal nullLiteral
Literal
public Literal(java.lang.Object value,
LitTable litTable)
- Create a new Literal, where comp must be in immediate mode.
Literal
public Literal(java.lang.Object value,
java.lang.String name,
LitTable litTable)
Literal
public Literal(java.lang.Object value,
Field field,
LitTable litTable)
- Create a new Literal, for a value available from a static field.
The field must be static and already exist.
Literal
public Literal(java.lang.Object value,
Type type,
LitTable litTable)
getValue
public final java.lang.Object getValue()