soot.coffi
Class field_info

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

public class field_info
extends Object

Represents a single field_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 field.
 int attributes_count
          Count of attributes this field contains.
 int descriptor_index
          Constant pool index of the type descriptor of this field.
 int name_index
          Constant pool index of the name of this field.
 
Constructor Summary
field_info()
           
 
Method Summary
 soot.coffi.ConstantValue_attribute findConstantValue_attribute()
          Locates a constant value attribute if one exists.
 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 field.
 
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 field.

See Also:
ClassFile.constant_pool, CONSTANT_Utf8_info

descriptor_index

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

See Also:
ClassFile.constant_pool, CONSTANT_Utf8_info

attributes_count

public int attributes_count
Count of attributes this field contains.


attributes

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

See Also:
attribute_info
Constructor Detail

field_info

public field_info()
Method Detail

toName

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

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

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 + type + name) of this field.

findConstantValue_attribute

public soot.coffi.ConstantValue_attribute findConstantValue_attribute()
Locates a constant value attribute if one exists.

Returns:
the constant value attribute or null.
See Also:
ConstantValue_attribute