Class Entry

    • Constructor Summary

      Constructors 
      Constructor Description
      Entry()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static Entry create​(int type)
      Create an entry based on its type code.
      int getIndex()
      Returns the index of the entry in the owning constant pool, or 0.
      ConstantPool getPool()
      Returns the constant pool containing this entry, or null if none.
      abstract int getType()
      Return the type code for this entry type.
      boolean isWide()
      Return true if this is a wide entry -- i.e.
      static Entry read​(java.io.DataInput in)
      Read a single entry from the given bytecode stream and returns it.
      static void write​(Entry entry, java.io.DataOutput out)
      Write the given entry to the given bytecode stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Entry

        public Entry()
    • Method Detail

      • read

        public static Entry read​(java.io.DataInput in)
                          throws java.io.IOException
        Read a single entry from the given bytecode stream and returns it.
        Throws:
        java.io.IOException
      • write

        public static void write​(Entry entry,
                                 java.io.DataOutput out)
                          throws java.io.IOException
        Write the given entry to the given bytecode stream.
        Throws:
        java.io.IOException
      • create

        public static Entry create​(int type)
        Create an entry based on its type code.
      • getType

        public abstract int getType()
        Return the type code for this entry type.
      • isWide

        public boolean isWide()
        Return true if this is a wide entry -- i.e. if it takes up two places in the constant pool. Returns false by default.
      • getPool

        public ConstantPool getPool()
        Returns the constant pool containing this entry, or null if none.
      • getIndex

        public int getIndex()
        Returns the index of the entry in the owning constant pool, or 0.