Package | Description |
---|---|
org.macroing.cel4j.java.binary.classfile |
Provides classes and interfaces that models a ClassFile structure (including substructures).
|
org.macroing.cel4j.java.binary.classfile.cpinfo |
Provides classes and interfaces that models various cp_info structures.
|
org.macroing.cel4j.java.binary.reader |
Provides classes and interfaces for reading
ClassFile s from binary data. |
org.macroing.cel4j.java.binary.support |
Provides support classes for all Java Binary APIs.
|
Modifier and Type | Class and Description |
---|---|
class |
ConstantUnreachableInfo
A
ConstantUnreachableInfo denotes a custom CONSTANT_Unreachable_info structure. |
Modifier and Type | Method and Description |
---|---|
<T extends CPInfo> |
ClassFile.getCPInfo(int index,
java.lang.Class<T> clazz)
Returns a
CPInfo cast to T given its index. |
<T extends CPInfo> |
ClassFile.getCPInfo(T cPInfo,
java.lang.Class<T> clazz)
|
Modifier and Type | Method and Description |
---|---|
abstract CPInfo |
CPInfo.copy()
Returns a copy of this
CPInfo instance. |
CPInfo |
ClassFile.getCPInfo(CPInfo cPInfo)
|
CPInfo |
ClassFile.getCPInfo(int index)
Returns a
CPInfo given its index. |
Modifier and Type | Method and Description |
---|---|
java.util.List<CPInfo> |
ClassFile.getCPInfos()
Returns a
List with all currently added CPInfo s. |
Modifier and Type | Method and Description |
---|---|
boolean |
ClassFile.addCPInfo(CPInfo cPInfo)
Adds
cPInfo to this ClassFile instance. |
boolean |
ClassFile.containsCPInfo(CPInfo cPInfo)
Returns
true if, and only if, this ClassFile instance contains cPInfo , false otherwise. |
CPInfo |
ClassFile.getCPInfo(CPInfo cPInfo)
|
int |
ClassFile.indexOf(CPInfo cPInfo)
Returns the index of
cPInfo in the constant_pool of this ClassFile instance, or -1 if it is an instance of ConstantUnreachableInfo or it does not exist. |
boolean |
ClassFile.removeCPInfo(CPInfo cPInfo)
Removes
cPInfo from this ClassFile instance, if present. |
boolean |
ClassFile.setCPInfo(CPInfo cPInfo,
int index)
Sets
cPInfo as the CPInfo on the given index. |
protected boolean |
AbstractClassFileHierarchicalVisitor.visitEnter(CPInfo cPInfo)
|
protected boolean |
AbstractClassFileHierarchicalVisitor.visitLeave(CPInfo cPInfo)
|
Modifier and Type | Class and Description |
---|---|
class |
ConstantClassInfo
A
ConstantClassInfo denotes a CONSTANT_Class_info structure in the constant_pool of a ClassFile structure. |
class |
ConstantDoubleInfo
A
ConstantDoubleInfo denotes a CONSTANT_Double_info structure in the constant_pool of a ClassFile structure. |
class |
ConstantDynamicInfo
A
ConstantDynamicInfo denotes a CONSTANT_Dynamic_info structure in the constant_pool of a ClassFile structure. |
class |
ConstantFieldRefInfo
A
ConstantFieldRefInfo denotes a CONSTANT_Fieldref_info structure in the constant_pool of a ClassFile structure. |
class |
ConstantFloatInfo
A
ConstantFloatInfo denotes a CONSTANT_Float_info structure in the constant_pool of a ClassFile structure. |
class |
ConstantIntegerInfo
A
ConstantIntegerInfo denotes a CONSTANT_Integer_info structure in the constant_pool of a ClassFile structure. |
class |
ConstantInterfaceMethodRefInfo
A
ConstantInterfaceMethodRefInfo denotes a CONSTANT_InterfaceMethodref_info structure in the constant_pool of a ClassFile structure. |
class |
ConstantInvokeDynamicInfo
A
ConstantInvokeDynamicInfo denotes a CONSTANT_InvokeDynamic_info structure in the constant_pool of a ClassFile structure. |
class |
ConstantLongInfo
A
ConstantLongInfo denotes a CONSTANT_Long_info structure in the constant_pool of a ClassFile structure. |
class |
ConstantMethodHandleInfo
A
ConstantMethodHandleInfo denotes a CONSTANT_MethodHandle_info structure in the constant_pool of a ClassFile structure. |
class |
ConstantMethodRefInfo
A
ConstantMethodRefInfo denotes a CONSTANT_Methodref_info structure in the constant_pool of a ClassFile structure. |
class |
ConstantMethodTypeInfo
A
ConstantMethodTypeInfo denotes a CONSTANT_MethodType_info structure in the constant_pool of a ClassFile structure. |
class |
ConstantModuleInfo
A
ConstantModuleInfo denotes a CONSTANT_Module_info structure in the constant_pool of a ClassFile structure. |
class |
ConstantNameAndTypeInfo
A
ConstantNameAndTypeInfo denotes a CONSTANT_NameAndType_info structure in the constant_pool of a ClassFile structure. |
class |
ConstantPackageInfo
A
ConstantPackageInfo denotes a CONSTANT_Package_info structure in the constant_pool of a ClassFile structure. |
class |
ConstantStringInfo
A
ConstantStringInfo denotes a CONSTANT_String_info structure in the constant_pool of a ClassFile structure. |
class |
ConstantUTF8Info
A
ConstantUTF8Info denotes a CONSTANT_Utf8_info structure in the constant_pool of a ClassFile structure. |
Modifier and Type | Method and Description |
---|---|
CPInfo |
CPInfoReader.readCPInfo(java.io.DataInput dataInput,
int tag)
Returns a
CPInfo based on the data provided by dataInput . |
Modifier and Type | Method and Description |
---|---|
AttributeInfo |
AttributeInfoReader.readAttributeInfo(java.io.DataInput dataInput,
int attributeNameIndex,
java.util.List<CPInfo> constantPool)
Returns an
AttributeInfo based on the data provided by dataInput . |
Modifier and Type | Method and Description |
---|---|
static CPInfo |
Instructions.getCPInfoFromLDC(CodeAttribute.Instruction instruction,
ClassFile classFile) |
static CPInfo |
Instructions.getCPInfoFromLDCW(CodeAttribute.Instruction instruction,
ClassFile classFile) |