public class DynamicObject extends Object
It has decent performance as it LRU-caches reflective call.
| Constructor and Description | 
|---|
| DynamicObject(Object target) | 
| Modifier and Type | Method and Description | 
|---|---|
| Object | get(String fieldName) | 
| double | getDouble(String fieldName) | 
| int | getInt(String fieldName) | 
| protected void | handleException(Throwable cause) | 
| Object | invoke(String methodName,
      Class<?>[] parameterTypes,
      Object... args) | 
| void | set(String fieldName,
   Object value) | 
| void | setDouble(String fieldName,
         double value) | 
| void | setInt(String fieldName,
      int value) | 
public DynamicObject(Object target)
public double getDouble(String fieldName)
public void setDouble(String fieldName, double value)
public int getInt(String fieldName)
public void setInt(String fieldName, int value)
protected void handleException(Throwable cause)
cause - 
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.