soot.coffi
Class method_info

java.lang.Object
  extended by soot.coffi.method_info

public class method_info
extends Object

Represents a single method_info object.

Author:
Clark Verbrugge
See Also:
ClassFile

Field Summary
 int access_flags
          Access flags for this field.
 soot.coffi.attribute_info[] attributes
          Array of attribute_info objects for this method.
 int attributes_count
          Count of attributes this method contains.
 CFG cfg
          Control Flow Graph constructed when the method is parsed.
 soot.coffi.Code_attribute code_attr
          A shortcut into attributes array for Code_attribute
 int descriptor_index
          Constant pool index of the type descriptor of this method.
 soot.coffi.Instruction instructions
          List of Instructions constructed when the method is parsed.
 SootMethod jmethod
           
 int name_index
          Constant pool index of the name of this method.
 
Constructor Summary
method_info()
           
 
Method Summary
 String prototype(soot.coffi.cp_info[] constant_pool)
          Returns the prototype of this field.
 String toName(soot.coffi.cp_info[] constant_pool)
          Returns the name of this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

access_flags

public int access_flags
Access flags for this field.


name_index

public int name_index
Constant pool index of the name of this method.

See Also:
ClassFile.constant_pool, CONSTANT_Utf8_info

descriptor_index

public int descriptor_index
Constant pool index of the type descriptor of this method.

See Also:
ClassFile.constant_pool, CONSTANT_Utf8_info

attributes_count

public int attributes_count
Count of attributes this method contains.


attributes

public soot.coffi.attribute_info[] attributes
Array of attribute_info objects for this method.

See Also:
attribute_info

code_attr

public soot.coffi.Code_attribute code_attr
A shortcut into attributes array for Code_attribute

See Also:
Code_attribute

instructions

public soot.coffi.Instruction instructions
List of Instructions constructed when the method is parsed.

See Also:
Instruction

cfg

public CFG cfg
Control Flow Graph constructed when the method is parsed.

See Also:
CFG

jmethod

public SootMethod jmethod
Constructor Detail

method_info

public method_info()
Method Detail

toName

public String toName(soot.coffi.cp_info[] constant_pool)
Returns the name of this method.

Parameters:
constant_pool - the constant_pool for this class.
Returns:
the name of this method.

prototype

public String prototype(soot.coffi.cp_info[] constant_pool)
Returns the prototype of this field.

Parameters:
constant_pool - the constant_pool for this class.
Returns:
the prototype (access + return + name + parameters) of this method.