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 |
---|---|
MethodInfo |
MethodInfo.copy()
Returns a copy of this
MethodInfo instance. |
MethodInfo |
ClassFile.getMethodInfo(int index)
Returns a
MethodInfo given its index. |
MethodInfo |
ClassFile.getMethodInfo(MethodInfo methodInfo)
|
static MethodInfo |
MethodInfo.newInstance()
Returns a new
MethodInfo instance. |
Modifier and Type | Method and Description |
---|---|
java.util.List<MethodInfo> |
ClassFile.getMethodInfos()
Returns a
List with all currently added MethodInfo s. |
Modifier and Type | Method and Description |
---|---|
boolean |
ClassFile.addMethodInfo(MethodInfo methodInfo)
Adds
methodInfo to this ClassFile instance, if absent. |
boolean |
ClassFile.containsMethodInfo(MethodInfo methodInfo)
Returns
true if, and only if, this ClassFile instance contains methodInfo , false otherwise. |
MethodInfo |
ClassFile.getMethodInfo(MethodInfo methodInfo)
|
boolean |
ClassFile.removeMethodInfo(MethodInfo methodInfo)
Removes
methodInfo from this ClassFile instance, if present. |
boolean |
ClassFile.setMethodInfo(MethodInfo methodInfo,
int index)
Sets
methodInfo as the MethodInfo on the given index. |
protected boolean |
AbstractClassFileHierarchicalVisitor.visitEnter(MethodInfo methodInfo)
This method is delegated to when entering a
Node that is an instance of MethodInfo . |
protected boolean |
AbstractClassFileHierarchicalVisitor.visitLeave(MethodInfo methodInfo)
This method is delegated to when leaving a
Node that is an instance of MethodInfo . |
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<CodeAttribute> |
CodeAttribute.find(MethodInfo methodInfo)
Attempts to find a
CodeAttribute instance in methodInfo . |
static java.util.Optional<DeprecatedAttribute> |
DeprecatedAttribute.find(MethodInfo methodInfo)
Attempts to find a
DeprecatedAttribute instance in methodInfo . |
static java.util.Optional<MethodParametersAttribute> |
MethodParametersAttribute.find(MethodInfo methodInfo)
Attempts to find a
MethodParametersAttribute instance in methodInfo . |
static java.util.Optional<SignatureAttribute> |
SignatureAttribute.find(MethodInfo methodInfo)
Attempts to find a
SignatureAttribute instance in methodInfo . |
Modifier and Type | Method and Description |
---|---|
static ConstantUTF8Info |
ConstantUTF8Info.findByAttributeNameIndex(AttributeInfo attributeInfo,
ClassFile classFile,
MethodInfo methodInfo)
Returns the
ConstantUTF8Info that is located on the index attributeInfo.getAttributeNameIndex() in the constant_pool table of classFile . |
static ConstantUTF8Info |
ConstantUTF8Info.findByDescriptorIndex(ClassFile classFile,
MethodInfo methodInfo)
Returns the
ConstantUTF8Info that is located on the index methodInfo.getDescriptorIndex() in the constant_pool table of classFile . |
static ConstantUTF8Info |
ConstantUTF8Info.findByNameIndex(ClassFile classFile,
MethodInfo methodInfo)
Returns the
ConstantUTF8Info that is located on the index methodInfo.getNameIndex() in the constant_pool table of classFile . |
Modifier and Type | Method and Description |
---|---|
static MethodDescriptor |
MethodDescriptor.parseMethodDescriptor(ClassFile classFile,
MethodInfo methodInfo) |
static java.util.Optional<MethodSignature> |
MethodSignature.parseMethodSignatureOptionally(ClassFile classFile,
MethodInfo methodInfo) |
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<MethodInfo> |
ClassFiles.getMethodInfoByName(ClassFile classFile,
java.lang.String name) |