com.android.dx.cf.cst
Class ConstantPoolParser

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

public final class ConstantPoolParser
extends Object

Parser for a constant pool embedded in a class file.


Constructor Summary
ConstantPoolParser(ByteArray bytes)
          Constructs an instance.
 
Method Summary
 int getEndOffset()
          Gets the end offset of this constant pool in the byte[] which it came from.
 StdConstantPool getPool()
          Gets the actual constant pool.
 void setObserver(ParseObserver observer)
          Sets the parse observer for this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantPoolParser

public ConstantPoolParser(ByteArray bytes)
Constructs an instance.

Parameters:
bytes - non-null; the bytes of the file
Method Detail

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


Copyright © 2015. All rights reserved.