public final class ClassData extends Object
Note: not using an @AutoValue since it copies
| Modifier and Type | Method and Description |
|---|---|
void |
checkClass()
Runs the
CheckClassAdapter on this class in basic analysis mode. |
static ClassData |
create(TypeInfo type,
byte[] b,
int numFields,
int numDetachStates) |
byte[] |
data()
Caution, this returns the underlying array and is mutable.
|
int |
numberOfDetachStates() |
int |
numberOfFields() |
String |
toString() |
TypeInfo |
type() |
public TypeInfo type()
public byte[] data()
public int numberOfFields()
public int numberOfDetachStates()
public void checkClass()
CheckClassAdapter on this class in basic analysis mode.
Basic anaylsis mode can flag verification errors that don't depend on knowing complete type information for the classes and methods being called. This is useful for flagging simple generation mistakes (e.g. stack underflows, method return type mismatches, accessing invalid locals). Additionally, the error messages are more useful than what the java verifier normally presents.