// Obtain the methods in the object by passing in the object
Public void ddddd (Object O ){
// Convert the object type to the character type
String pojo = string. valueof (O );
// Truncate the correct pojo class instance path
Pojo = pojo. substring (0, pojo. indexof ("@"));
Class pojoin = NULL;
System. Out. println ("pojo:" + pojo );
Try {
// Create an object
Pojoin = Class. forname (pojo );
} Catch (classnotfoundexception e ){
E. printstacktrace ();
}
// Obtain the object's method set
Method [] Methods = pojoin. getdeclaredmethods ();
// Declare an array based on half of the size of the method set
String [] temp = new string [methods. Length/2];
List array = new arraylist ();
// Read the name of the method in the method set cyclically and extract
For (INT I = 0; I <methods. length; I ++ ){
If (methods [I]. tostring (). substring (7, 11). Equals ("Void ")){
String STR = methods [I]. tostring ();
STR = Str. substring (Str. indexof (pojo), str. indexof ("("));
STR = Str. substring (Str. lastindexof (".") + 4, str. Length ());
STR = Str. substring (0, 1). tolowercase (). tostring ()
+ Str. substring (1, str. Length ());
Array. Add (STR );
}
}
// Obtain the name of the field in JavaBean
For (INT I = 0; I <temp. length; I ++ ){
Temp [I] = array. Get (I). tostring ();
}
}