Class ConstantPoolParser

java.lang.Object
com.android.dx.cf.cst.ConstantPoolParser

public final class ConstantPoolParser extends Object
Parser for a constant pool embedded in a class file.
  • Constructor Details

    • ConstantPoolParser

      public ConstantPoolParser(ByteArray bytes)
      Constructs an instance.
      Parameters:
      bytes - non-null; the bytes of the file
  • Method Details

    • setObserver

      public void setObserver(ParseObserver observer)
      Sets the parse observer for this instance.
      Parameters:
      observer - null-ok; the observer
    • getEndOffset

      public int getEndOffset()
      Gets the end offset of this constant pool in the byte[] which it came from.
      Returns:
      >= 10; the end offset
    • getPool

      public StdConstantPool getPool()
      Gets the actual constant pool.
      Returns:
      non-null; the constant pool