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.attributeinfo |
Provides classes and interfaces that models various attribute_info structures.
|
org.macroing.cel4j.java.binary.classfile.cpinfo |
Provides classes and interfaces that models various cp_info structures.
|
org.macroing.cel4j.java.binary.classfile.string |
Provides classes and interfaces that models various
String representations, such as descriptors and signatures. |
org.macroing.cel4j.java.binary.support |
Provides support classes for all Java Binary APIs.
|
Modifier and Type | Method and Description |
---|---|
FieldInfo |
FieldInfo.copy()
Returns a copy of this
FieldInfo instance. |
FieldInfo |
ClassFile.getFieldInfo(FieldInfo fieldInfo)
|
FieldInfo |
ClassFile.getFieldInfo(int index)
Returns a
FieldInfo given its index. |
static FieldInfo |
FieldInfo.newInstance()
Returns a new
FieldInfo instance. |
Modifier and Type | Method and Description |
---|---|
java.util.List<FieldInfo> |
ClassFile.getFieldInfos()
Returns a
List with all currently added FieldInfo s. |
Modifier and Type | Method and Description |
---|---|
boolean |
ClassFile.addFieldInfo(FieldInfo fieldInfo)
Adds
fieldInfo to this ClassFile instance, if absent. |
boolean |
ClassFile.containsFieldInfo(FieldInfo fieldInfo)
Returns
true if, and only if, this ClassFile instance contains fieldInfo , false otherwise. |
FieldInfo |
ClassFile.getFieldInfo(FieldInfo fieldInfo)
|
boolean |
ClassFile.removeFieldInfo(FieldInfo fieldInfo)
Removes
fieldInfo from this ClassFile instance, if present. |
boolean |
ClassFile.setFieldInfo(FieldInfo fieldInfo,
int index)
Sets
fieldInfo as the FieldInfo on the given index. |
protected boolean |
AbstractClassFileHierarchicalVisitor.visitEnter(FieldInfo fieldInfo)
|
protected boolean |
AbstractClassFileHierarchicalVisitor.visitLeave(FieldInfo fieldInfo)
|
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<ConstantValueAttribute> |
ConstantValueAttribute.find(FieldInfo fieldInfo)
Attempts to find a
ConstantValueAttribute instance in fieldInfo . |
static java.util.Optional<SignatureAttribute> |
SignatureAttribute.find(FieldInfo fieldInfo)
Attempts to find a
SignatureAttribute instance in fieldInfo . |
Modifier and Type | Method and Description |
---|---|
static ConstantUTF8Info |
ConstantUTF8Info.findByAttributeNameIndex(AttributeInfo attributeInfo,
ClassFile classFile,
FieldInfo fieldInfo)
Returns the
ConstantUTF8Info that is located on the index attributeInfo.getAttributeNameIndex() in the constant_pool table of classFile . |
static ConstantUTF8Info |
ConstantUTF8Info.findByDescriptorIndex(ClassFile classFile,
FieldInfo fieldInfo)
Returns the
ConstantUTF8Info that is located on the index fieldInfo.getDescriptorIndex() in the constant_pool table of classFile . |
static ConstantUTF8Info |
ConstantUTF8Info.findByNameIndex(ClassFile classFile,
FieldInfo fieldInfo)
Returns the
ConstantUTF8Info that is located on the index fieldInfo.getNameIndex() in the constant_pool table of classFile . |
Modifier and Type | Method and Description |
---|---|
static FieldDescriptor |
FieldDescriptor.parseFieldDescriptor(ClassFile classFile,
FieldInfo fieldInfo) |
static java.util.Optional<FieldSignature> |
FieldSignature.parseFieldSignatureOptionally(ClassFile classFile,
FieldInfo fieldInfo) |
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<FieldInfo> |
ClassFiles.getFieldInfoByName(ClassFile classFile,
java.lang.String name)
|