public class MethodInfo extends java.lang.Object implements WritableData
| Modifier and Type | Field and Description |
|---|---|
private int |
accessFlags |
private java.util.List |
attrs |
private Utf8Constant |
descriptorConstant |
private Utf8Constant |
nameConstant |
| Constructor and Description |
|---|
MethodInfo(ConstantPool pool,
java.lang.String name,
java.lang.String descriptor,
int accessFlags) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(Attribute attr) |
void |
write(java.io.DataOutput out)
Write data to a
DataOutput stream. |
private int accessFlags
private Utf8Constant nameConstant
private Utf8Constant descriptorConstant
private java.util.List attrs
public MethodInfo(ConstantPool pool, java.lang.String name, java.lang.String descriptor, int accessFlags)
public void addAttribute(Attribute attr)
public void write(java.io.DataOutput out)
throws java.io.IOException
WritableDataDataOutput stream.write in interface WritableDataout - Stream to which data is written.java.io.IOException - if an I/O error occurs during writing.