Package com.plotsquared.core.util
Class ReflectionUtils.RefClass
java.lang.Object
com.plotsquared.core.util.ReflectionUtils.RefClass
- Enclosing class:
- ReflectionUtils
RefClass - utility to simplify work with reflections.
-
Method Summary
Modifier and TypeMethodDescriptionget field by nameget existing method by name and typesClass<?>
get passed class
-
Method Details
-
getRealClass
get passed class- Returns:
- class
-
getMethod
public ReflectionUtils.RefMethod getMethod(String name, Object... types) throws NoSuchMethodException get existing method by name and types- Parameters:
name
- nametypes
- method parameters. can be Class or RefClass- Returns:
- RefMethod object
- Throws:
NoSuchMethodException
- if method not found
-
getField
get field by name- Parameters:
name
- field name- Returns:
- RefField
- Throws:
NoSuchFieldException
- if field not found
-