public class ParticleMappings extends Object
| Constructor and Description |
|---|
ParticleMappings() |
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
getMappedClass(String name)
Gets the mapped
Class for the given name. |
static Field |
getMappedField(Class targetClass,
String name,
boolean declared)
Gets the mapped
Field for the given name. |
static Method |
getMappedMethod(Class<?> targetClass,
String name,
Class<?>... parameterTypes)
Gets the mapped
Method for the given name. |
public static Class<?> getMappedClass(String name)
Class for the given name.name - the name of the classClasspublic static Method getMappedMethod(Class<?> targetClass, String name, Class<?>... parameterTypes)
Method for the given name.targetClass - the class to get the method fromname - the name of the methodparameterTypes - the parameter types of the methodMethodpublic static Field getMappedField(Class targetClass, String name, boolean declared)
Field for the given name.targetClass - the class to get the field fromname - the name of the fielddeclared - whether to get the declared field or notFieldCopyright © 2022. All rights reserved.