| Constructor and Description |
|---|
MethodInfo(Java.Modifiers modifiers,
short nameIndex,
short descriptorIndex,
List<ClassFile.AttributeInfo> attributes)
Initializes the "method_info" structure.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(ClassFile.AttributeInfo attribute)
Adds the given
attribute to this method. |
Java.Annotation[] |
getAnnotations() |
ClassFile.AttributeInfo[] |
getAttributes() |
ClassFile |
getClassFile() |
String |
getDescriptor() |
short |
getModifierFlags() |
String |
getName() |
void |
store(DataOutputStream dos)
Writes this object to a
DataOutputStream, in the format described inJVMS7 4.6. |
public MethodInfo(Java.Modifiers modifiers, short nameIndex, short descriptorIndex, List<ClassFile.AttributeInfo> attributes)
public ClassFile getClassFile()
ClassFile that contains this ClassFile.MethodInfo objectpublic short getModifierFlags()
Mod.public Java.Annotation[] getAnnotations()
public String getName()
public String getDescriptor()
public ClassFile.AttributeInfo[] getAttributes()
public void addAttribute(ClassFile.AttributeInfo attribute)
attribute to this method.public void store(DataOutputStream dos) throws IOException
DataOutputStream, in the format described inJVMS7 4.6.IOExceptionCopyright © 2001–2025. All rights reserved.