class FieldDescriptors{
int intvalue;
double doublevalue;
float floatvalue;
String stringvalue = new String();
int intarrayvalue[] = new int[5];
MyClass myclassvalue = new MyClass();
}
How to get Field Descriptors.
javap -s -p JAVA_CLASS_FILE
Result
class FieldDescriptors {
int intvalue;
double doublevalue;
float floatvalue;
java.lang.String stringvalue;
int[] intarrayvalue;
MyClass myclassvalue;
FieldDescriptors();
}
class FieldDescriptors {
int intvalue;
Signature: I
double doublevalue;
Signature: D
float floatvalue;
Signature: F
java.lang.String stringvalue;
Signature: Ljava/lang/String;
int[] intarrayvalue;
Signature: [I
MyClass myclassvalue;
Signature: LMyClass;
FieldDescriptors();
Signature: ()V
}