Package org.jupnp.util
Klasse Reflections
java.lang.Object
org.jupnp.util.Reflections
- Autor:
- Christian Bauer
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassclassForName(String name) static Stringdecapitalize(String name) static Objectstatic ObjectgetAndWrap(Field field, Object target) static Class<?> Get the underlying class for a type, or null if the type is a variable type.static ClassgetCollectionElementType(Type collectionType) static Fieldstatic MethodgetGetterMethod(Class clazz, String name) static ClassgetMapKeyType(Type collectionType) static MethodgetMethod(Annotation annotation, String name) static Methodstatic StringgetMethodPropertyName(String methodName) getMethods(Class clazz, Class annotation) static MethodgetSetterMethod(Class clazz, String name) getTypeArguments(Class<T> baseClass, Class<? extends T> childClass) Get the actual type arguments a child class has used to extend a generic base class.static Objectstatic ObjectinvokeAndWrap(Method method, Object target, Object... args) static booleanisClassAvailable(String name) static booleanisInstanceOf(Class clazz, String name) static voidstatic voidsetAndWrap(Field field, Object target, Object value) static StringtoClassNameString(String sep, Object... objects) static Stringstatic Stringstatic String
-
Konstruktordetails
-
Reflections
public Reflections()
-
-
Methodendetails
-
invoke
- Löst aus:
Exception
-
get
- Löst aus:
Exception
-
getMethod
-
set
- Löst aus:
Exception
-
getMethodPropertyName
-
getGetterMethod
-
getMethods
-
getField
-
getFields
-
getTypeArguments
public static <T> List<Class<?>> getTypeArguments(Class<T> baseClass, Class<? extends T> childClass) Get the actual type arguments a child class has used to extend a generic base class.- Parameter:
baseClass- the base classchildClass- the child class- Gibt zurück:
- a list of the raw classes for the actual type arguments.
-
getClass
Get the underlying class for a type, or null if the type is a variable type.- Parameter:
type- the type- Gibt zurück:
- the underlying class
-
getAndWrap
-
setAndWrap
-
invokeAndWrap
-
toString
-
classForName
- Löst aus:
ClassNotFoundException
-
isClassAvailable
-
getCollectionElementType
-
getMapKeyType
-
getSetterMethod
-
getMethod
-
isInstanceOf
-
toClassNameString
-
unqualify
-
unqualify
-
decapitalize
-