public class MethodDescriptor extends Object
Constructor and Description |
---|
MethodDescriptor(DataInput dataInput,
Constant[] constantPool)
constructs a new MethodDescriptor
|
Modifier and Type | Method and Description |
---|---|
int |
getBytePosition(int operationIndex)
returns the bytePosition of the operation.
|
ExceptionEntry[] |
getExceptionTable()
returns the exception table of the method
|
LineNumber[] |
getLineNumberTable()
returns the linenumber table of the method
|
LocalVariableDescriptor[] |
getLocalVariableTable()
returns the localvariable descriptors
|
int |
getMaxStack()
returns the maximum stack size of this method
|
AccessibleObject |
getMethod() |
nl.tudelft.simulation.language.reflection.MethodSignature |
getMethodSignature() |
String |
getName()
returns the name of the method
|
Operation |
getOperation(int bytePosition)
returns the operation at bytePosition
|
int |
getOperationIndex(int bytePosition)
returns the index number of the operation in the operationtable of the
operation starting at bytePosition
|
Operation[] |
getOperations()
returns the operations of the method.
|
void |
setMethod(AccessibleObject method)
sets the method of this descriptor
|
public MethodDescriptor(DataInput dataInput, Constant[] constantPool) throws IOException
dataInput
- the dataInputconstantPool
- the constantPoolIOException
- on ioExceptionpublic int getBytePosition(int operationIndex)
operationIndex
- the n-th operationpublic ExceptionEntry[] getExceptionTable()
public LineNumber[] getLineNumberTable()
public LocalVariableDescriptor[] getLocalVariableTable()
public int getMaxStack()
public AccessibleObject getMethod()
public nl.tudelft.simulation.language.reflection.MethodSignature getMethodSignature()
public String getName()
public Operation[] getOperations()
public int getOperationIndex(int bytePosition)
bytePosition
- the bytePositionpublic Operation getOperation(int bytePosition)
bytePosition
- the position to startpublic void setMethod(AccessibleObject method)
method
- the methodCopyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.