Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java reflection get field value

Field field = object.getClass().getDeclaredField(fieldName);    
field.setAccessible(true);
Object value = field.get(object);
 
PREVIOUS NEXT
Tagged: #java #reflection #field
ADD COMMENT
Topic
Name
8+4 =