soot.coffi
Class field_info
java.lang.Object
|
+--soot.coffi.field_info
- public class field_info
- extends java.lang.Object
Represents a single field_info object.
- 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. |
Method Summary |
soot.coffi.ConstantValue_attribute |
findConstantValue_attribute()
Locates a constant value attribute if one exists. |
java.lang.String |
prototype(soot.coffi.cp_info[] constant_pool)
Returns the prototype of this field. |
java.lang.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 |
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
field_info
public field_info()
toName
public java.lang.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 java.lang.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