Cleanup reflection parameters
This commit is contained in:
parent
578f4e1b9e
commit
e5038fce31
20 changed files with 73 additions and 131 deletions
|
|
@ -1,5 +1,7 @@
|
|||
package net.frankheijden.serverutils.common.reflection;
|
||||
|
||||
import static net.frankheijden.serverutils.common.reflection.VersionParam.ALL_VERSIONS;
|
||||
|
||||
public class FieldParam {
|
||||
public String field;
|
||||
public VersionParam versionParam;
|
||||
|
|
@ -12,4 +14,8 @@ public class FieldParam {
|
|||
public static FieldParam fieldOf(String field, VersionParam versionParam) {
|
||||
return new FieldParam(field, versionParam);
|
||||
}
|
||||
|
||||
public static FieldParam fieldOf(String field) {
|
||||
return fieldOf(field, ALL_VERSIONS);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
package net.frankheijden.serverutils.common.reflection;
|
||||
|
||||
import static net.frankheijden.serverutils.common.reflection.VersionParam.ALL_VERSIONS;
|
||||
|
||||
public class MethodParam {
|
||||
|
||||
public String method;
|
||||
|
|
@ -15,4 +17,8 @@ public class MethodParam {
|
|||
public static MethodParam methodOf(String method, VersionParam versionParam, Class<?>... params) {
|
||||
return new MethodParam(method, versionParam, params);
|
||||
}
|
||||
|
||||
public static MethodParam methodOf(String method, Class<?>... params) {
|
||||
return methodOf(method, ALL_VERSIONS, params);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue