Package gnu.expr

Class Literal

java.lang.Object
gnu.expr.Literal

public class Literal extends Object
A Literal contains compile-time information about a constant.
  • Field Details

    • field

      public Field field
    • type

      public Type type
    • flags

      public int flags
    • nullLiteral

      public static final Literal nullLiteral
  • Constructor Details

    • Literal

      public Literal(Object value, LitTable litTable)
      Create a new Literal, where comp must be in immediate mode.
    • 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)
  • Method Details

    • getValue

      public final Object getValue()