gnu.expr
Class Literal

java.lang.Object
  extended by gnu.expr.Literal

public class Literal
extends java.lang.Object

A Literal contains compile-time information about a constant.


Field Summary
 Field field
           
 int flags
           
static Literal nullLiteral
           
 Type type
           
 
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 Detail

field

public Field field

type

public Type type

flags

public int flags

nullLiteral

public static final Literal nullLiteral
Constructor Detail

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)
Method Detail

getValue

public final java.lang.Object getValue()