Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java equivalent of pythons getattr

//normal
value = obj.attribute;

//runtime
value = obj.getClass().getField("attribute").get(obj);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #equivalent #pythons #getattr
ADD COMMENT
Topic
Name
5+7 =