public ArrayValue getConstants(Env env) { ArrayValue array = new ArrayValueImpl(); HashMap <StringValue, Value> _constMap = _cls.getConstantMap(env); for (Map.Entry <StringValue, Value> entry : _constMap.entrySet()) { Value name = entry.getKey(); array.put(name, entry.getValue()); } return(array); }