return new ReflectionProperty(env, _cls, name);
}
public ArrayValue getProperties(Env env)
{
ArrayValue array = new ArrayValueImpl();
ArrayList<StringValue> fieldList = _cls.getFieldNames();
for (StringValue field : fieldList) {
ReflectionProperty prop
= ReflectionProperty.create(env, _cls, field, false);
array.put(env.wrapJava(prop));
}
ArrayList<String> staticFieldList = _cls.getStaticFieldNames();
for (String field : staticFieldList) {
ReflectionProperty prop
= ReflectionProperty.create(env, _cls, env.createStringOld(field), true);
array.put(env.wrapJava(prop));
}
return array;
}