| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectsysModel.classFile.MethodInfo
public final class MethodInfo
Represents a method in a class file.
| Field Summary | |
|---|---|
| private  short | _accessFlagsMethod access flags. | 
| private  java.util.ArrayList<AAttributeInfo> | _attributesAttributes. | 
| private  AUTFPoolInfo | _descriptorType descriptor information. | 
| private  AUTFPoolInfo | _nameName information. | 
| Constructor Summary | |
|---|---|
| MethodInfo(java.io.DataInputStream di,
                     ConstantPool pool)Constructor. | |
| MethodInfo(short accessFlags,
                     AUTFPoolInfo name,
                     AUTFPoolInfo signature,
                     AAttributeInfo[] attributes)Constructor. | |
| Method Summary | |
|---|---|
|  short | getAccessFlags()Accessor for access flags. | 
|  java.util.ArrayList<AAttributeInfo> | getAttributes()Accessor for attributes. | 
|  CodeAttributeInfo | getCodeAttributeInfo()Return this method's code attribute info. | 
|  AUTFPoolInfo | getDescriptor()Accessor for descriptor. | 
|  AUTFPoolInfo | getName()Accessor for field name. | 
|  void | setAccessFlags(short accessFlags)Mutator for access flags. | 
|  void | setDescriptor(AUTFPoolInfo descriptor)Mutator for descriptor. | 
|  void | setName(AUTFPoolInfo name)Mutator for field name. | 
|  java.lang.String | toString()Return a human-readable version of this method. | 
|  java.lang.String | toString(ConstantPool pool)Return a human-readable version of this method. | 
|  java.lang.String | toString(ConstantPool pool,
                 boolean lineNumbers,
                 boolean PCs)Return a human-readable version of this method. | 
|  void | write(java.io.DataOutputStream dos,
           ConstantPool pool)Write this method into the stream. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
private short _accessFlags
private AUTFPoolInfo _name
private AUTFPoolInfo _descriptor
private java.util.ArrayList<AAttributeInfo> _attributes
| Constructor Detail | 
|---|
public MethodInfo(short accessFlags,
                  AUTFPoolInfo name,
                  AUTFPoolInfo signature,
                  AAttributeInfo[] attributes)
accessFlags - method access flagsname - method namesignature - method descriptorattributes - array of attributes
public MethodInfo(java.io.DataInputStream di,
                  ConstantPool pool)
           throws java.io.IOException,
                  java.lang.ClassFormatError
di - input streampool - constant pool
java.io.IOException
java.lang.ClassFormatError| Method Detail | 
|---|
public void write(java.io.DataOutputStream dos,
                  ConstantPool pool)
           throws java.io.IOException
dos - output streampool - constant pool
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(ConstantPool pool)
pool - constant pool
public java.lang.String toString(ConstantPool pool,
                                 boolean lineNumbers,
                                 boolean PCs)
pool - constant poollineNumbers - print line numbersPCs - print PC values
public short getAccessFlags()
public void setAccessFlags(short accessFlags)
accessFlags - new access flagspublic AUTFPoolInfo getName()
public void setName(AUTFPoolInfo name)
name - new field namepublic AUTFPoolInfo getDescriptor()
public void setDescriptor(AUTFPoolInfo descriptor)
descriptor - new descriptorpublic java.util.ArrayList<AAttributeInfo> getAttributes()
public CodeAttributeInfo getCodeAttributeInfo()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||