mirror of
https://github.com/EsotericSoftware/reflectasm.git
synced 2025-02-13 04:40:26 +08:00
[added] getFields and getMethods methods.
This commit is contained in:
parent
929c14c844
commit
096a393f12
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user