Class ConstantPoolParser
java.lang.Object
com.android.dx.cf.cst.ConstantPoolParser
Parser for a constant pool embedded in a class file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the end offset of this constant pool in thebyte[]which it came from.getPool()Gets the actual constant pool.voidsetObserver(ParseObserver observer) Sets the parse observer for this instance.
-
Constructor Details
-
ConstantPoolParser
Constructs an instance.- Parameters:
bytes-non-null;the bytes of the file
-
-
Method Details
-
setObserver
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 thebyte[]which it came from.- Returns:
>= 10;the end offset
-
getPool
Gets the actual constant pool.- Returns:
non-null;the constant pool
-