[added] getFields and getMethods methods.

This commit is contained in:
Nathan Sweet 2011-06-15 23:56:58 +00:00
parent 929c14c844
commit 096a393f12
2 changed files with 8 additions and 0 deletions

View File

@ -241,4 +241,8 @@ public abstract class FieldAccess {
public Object get (Object object, String fieldName) {
return get(object, getIndex(fieldName));
}
public Field[] getFields () {
return fields;
}
}

View File

@ -234,4 +234,8 @@ public abstract class MethodAccess {
}
throw new IllegalArgumentException("Unable to find public method: " + methodName + " " + Arrays.toString(parameterTypes));
}
public Method[] getMethods () {
return methods;
}
}