Package org.codehaus.janino.util
Class ClassFile.MethodInfo
- java.lang.Object
-
- org.codehaus.janino.util.ClassFile.MethodInfo
-
- Enclosing class:
- ClassFile
public class ClassFile.MethodInfo extends java.lang.Object
This class represents a "method_info" structure, as defined by the JVM specification.
-
-
Constructor Summary
Constructors Constructor Description MethodInfo(short accessFlags, short nameIndex, short descriptorIndex, java.util.List attributes)
Initialize the "method_info" structure.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttribute(ClassFile.AttributeInfo attribute)
short
getAccessFlags()
ClassFile.AttributeInfo[]
getAttributes()
ClassFile
getClassFile()
short
getDescriptorIndex()
short
getNameIndex()
void
store(java.io.DataOutputStream dos)
Write this object to aDataOutputStream
, in the format defined by the JVM specification.
-
-
-
Method Detail
-
getClassFile
public ClassFile getClassFile()
-
getAccessFlags
public short getAccessFlags()
-
getNameIndex
public short getNameIndex()
-
getDescriptorIndex
public short getDescriptorIndex()
-
getAttributes
public ClassFile.AttributeInfo[] getAttributes()
-
addAttribute
public void addAttribute(ClassFile.AttributeInfo attribute)
-
store
public void store(java.io.DataOutputStream dos) throws java.io.IOException
Write this object to aDataOutputStream
, in the format defined by the JVM specification.- Throws:
java.io.IOException
-
-