Package gnu.expr

Class Literal


  • public class Literal
    extends java.lang.Object
    A Literal contains compile-time information about a constant.
    • Constructor Summary

      Constructors 
      Constructor Description
      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, Type type, LitTable litTable)  
      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)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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()