日期:2014-05-16 浏览次数:20485 次
public class Model {
public int i = 0;
public double d = 0.1;
public String s = "s";
}
public Object getPropertyValue(Object o, String n) {
org.alex.cases.json.compare.Model w;
try {
w = ((org.alex.cases.json.compare.Model) $1);
} catch (Throwable e) {
throw new IllegalArgumentException(e);
}
if ($2.equals("i")) {
return ($w) w.i;
}
if ($2.equals("d")) {
return ($w) w.d;
}
if ($2.equals("s")) {
return ($w) w.s;
}
throw new com.alibaba.dubbo.common.bytecode.NoSuchPropertyException("Not found property \"" + $2
+ "\" filed or setter method in class org.alex.cases.json.compare.Model.");
}
public void setPropertyValue(Object o, String n, Object v) {
org.alex.cases.json.compare.Model w;
try {
w = ((org.alex.cases.json.compare.Model) $1);
} catch (Throwable e) {
throw new IllegalArgumentException(e);
}
if ($2.equals("i")) {
w.i = ((Number) $3).intValue();
return;
}
if ($2.equals("d")) {
w.d = ((Number) $3).doubleValue();
return;
}
if ($2.equals("s")) {
w.s = (java.lang.String) $3;
return;
}
throw new com.alibaba.dubbo.common.bytecode.NoSuchPropertyException("Not found property \"" + $2
+ "\" filed or setter method in class org.alex.cases.json.compare.Model.");
}
public Object invokeMethod(Object o, String n, Class[] p, Object[] v) throws java.lang.reflect.InvocationTargetException {
org.alex.cases.json.compare.Model w;
try {
w = ((org.alex.cases.json.compare.Model) $1);
} catch (Throwable e) {
throw new IllegalArgumentException(e);
}
throw new com.alibaba.dubbo.common.bytecode.NoSuchMethodException("Not found method \"" + $2
+ "\" in class org.alex.cases.json.compare.Model.");
}
write(JsonWriter out, T value)