<!-- ##### SECTION Title ##### -->
Fields/Methods

<!-- ##### SECTION Short_Description ##### -->
Functions for fields and methods.

<!-- ##### SECTION Long_Description ##### -->
<para>
libjclass treats fields and methods in the same way.
This is because they are very similar in their representation.
</para>

<!-- ##### SECTION See_Also ##### -->
<para>

</para>

<!-- ##### ENUM JCVisibility ##### -->
<para>
Visibility
</para>

@V_PUBLIC: Public .
@V_PACKAGE: Package.
@V_PROTECTED: Protected.
@V_PRIVATE: Private.
@V_SYNTHETIC: Synthetic.

<!-- ##### STRUCT Field ##### -->
<para>
Information for a field or method.
</para>

@access_flags: 
@name_index: 
@descriptor_index: 
@attributes_count: 
@attributes: 

<!-- ##### FUNCTION jclass_field_is_visible ##### -->
<para>
Checks whether the field given is visible with the visibility given.
</para>

@field: The field to check.
@cpool: The constant pool of the class.
@visibility: The visibility to check.
@Returns: 1 if the field is visible, 0 otherwise.


<!-- ##### FUNCTION jclass_field_get_name ##### -->
<para>
Gives the name of a field/method.
</para>

@field: The field/method to get its name.
@cpool: The costant pool of the class.
@Returns: A newly constructed string with the name.


<!-- ##### FUNCTION jclass_field_get_descriptor ##### -->
<para>
Gives the descriptor of a field/method. The descriptor is a string with
a special format that describes the type and parameters for a field/method.
You can get those as strings with the jclass_descriptor_get_type() and
jclass_descriptor_get_parameters() functions.
</para>

@field: The field/method to get its descriptor.
@cpool: The constant pool of the class.
@Returns: A newly constructed string with the descriptor.


<!-- ##### FUNCTION jclass_field_get_code_attribute ##### -->
<para>
Returns the code attribute for a method. If the Field is a field
or a method without code it returns NULL.
</para>

@field: The field to get its code attribute.
@cpool: The constant pool of the class.
@Returns: A newly constructed CodeAttribute struct.


