gnu.expr

Class 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(Object value, String name, LitTable litTable)
Literal(Object value, Field field, LitTable litTable)
Create a new Literal, for a value available from a static field.
Literal(Object value, Type type, LitTable litTable)
Literal(Object value, LitTable litTable)
Create a new Literal, where comp must be in immediate mode.

Method Summary

Object
getValue()

Field Details

field

public Field field

flags

public int flags

nullLiteral

public static final Literal nullLiteral

type

public Type type

Constructor Details

Literal

public Literal(Object value,
               String name,
               LitTable litTable)

Literal

public Literal(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(Object value,
               Type type,
               LitTable litTable)

Literal

public Literal(Object value,
               LitTable litTable)
Create a new Literal, where comp must be in immediate mode.

Method Details

getValue

public final Object getValue()