Mega Code Archive

 
Categories / Java Book / 008 Reflection
 

0421 Get fields

Field getField(String name) Returns a Field object that reflects the specified public member field of the class or interface represented by this Class object. Field[] getFields() Returns an array containing Field objects reflecting all the accessible public fields of the class or interface represented by this Class object.