Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

method_info Class Reference

List of all members.

Public Attributes

CFG cfg

Private Methods

Code_attribute locate_code_attribute ()
void print (cp_info constant_pool[])
String prototype (cp_info constant_pool[])
String toName (cp_info constant_pool[])

Private Attributes

int access_flags
int name_index
int descriptor_index
int attributes_count
attribute_info attributes []
Instruction instructions
ca mcgill sable soot SootMethod jmethod
ca mcgill sable util List instructionList

Detailed Description

Represents a single method_info object.
See also:
ClassFile
Author:
Clark Verbrugge

Definition at line 121 of file method_info.java.


Member Function Documentation

Code_attribute method_info::locate_code_attribute   [inline, private]
 

Locates and returns the code attribute for this method.

Returns:
the single code attribute, or null if not found.
See also:
Code_attribute

Definition at line 160 of file method_info.java.

Referenced by CFG::jimpleTargetFixup(), CFG::jimplify(), ClassFile::parseMethod(), prototype(), and ClassFile::unparse().

void method_info::print cp_info   constant_pool[] [inline, private]
 

Displays this method, printing a prototype followed by list of Instructions.

Parameters:
constant_pool   the constant_pool for this class.
See also:
prototype , ByteCode::showCode

Definition at line 176 of file method_info.java.

String method_info::prototype cp_info   constant_pool[] [inline, private]
 

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.

Definition at line 184 of file method_info.java.

Referenced by print().

String method_info::toName cp_info   constant_pool[] [inline, private]
 

Returns the name of this method.

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

Definition at line 203 of file method_info.java.

Referenced by ClassFile::findMethod(), ClassFile::parseMethod(), prototype(), and ClassFile::unparse().


Member Data Documentation

int method_info::access_flags [private]
 

Access flags for this field.

Definition at line 123 of file method_info.java.

attribute_info method_info::attributes[] [private]
 

Array of attribute_info objects for this method.

See also:
attribute_info

Definition at line 139 of file method_info.java.

int method_info::attributes_count [private]
 

Count of attributes this method contains.

Definition at line 135 of file method_info.java.

CFG method_info::cfg
 

Control Flow Graph constructed when the method is parsed.

See also:
ClassFile@parse , CFG

Definition at line 150 of file method_info.java.

int method_info::descriptor_index [private]
 

Constant pool index of the type descriptor of this method.

See also:
ClassFile::constant_pool , CONSTANT_Utf8_info

Definition at line 133 of file method_info.java.

Instruction method_info::instructions [private]
 

List of Instructions constructed when the method is parsed.

See also:
ClassFile@parse , ClassFile@parseMethod , Instruction

Definition at line 145 of file method_info.java.

int method_info::name_index [private]
 

Constant pool index of the name of this method.

See also:
ClassFile::constant_pool , CONSTANT_Utf8_info

Definition at line 128 of file method_info.java.


The documentation for this class was generated from the following file:
Generated at Thu Feb 7 07:20:05 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001