Converts a CSObj of java.lang.reflect.Method to corresponding JMethod. If the object does not represent a Method, then return null.
(CSObj csObj)
| 112 | * If the object does not represent a Method, then return null. |
| 113 | */ |
| 114 | @Nullable |
| 115 | public static JField toField(CSObj csObj) { |
| 116 | Object alloc = csObj.getObject().getAllocation(); |
| 117 | return alloc instanceof JField field ? field : null; |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * Converts a CSObj of class to corresponding type. If the object is |
no test coverage detected