Package gw.lang.reflect
Class ReflectUtil
java.lang.Object
gw.lang.reflect.ReflectUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Objectstatic Object[]coerceArgsIfNecessary(IParameterInfo[] parameters, Object... args) static <T> Tstatic IGosuObjectconstructGosuClassInstance(String className, Object... args) private static voidensureTypeIsValid(IType type) static IType[]extractRuntimeTypes(Object... args) private static IConstructorInfofindCallableConstructor(IType type, IType[] runtimeTypes) static IMethodInfofindCallableMethod(String methodName, IType[] runtimeTypes, IType type) static IPropertyInfofindProperty(IType type, String propertyName) static IGosuClassstatic IGosuClassgetClassButThrowIfInvalid(String fullyQualifiedName) static IGosuObjectstatic ObjectgetProperty(Object instance, String propertyName) static ObjectgetStaticProperty(IType type, String propertyName) static ObjectgetStaticProperty(String className, String propertyName) static ObjectinvokeMethod(Object instance, String methodName, Object... args) static ObjectinvokeStaticMethod(String className, String methodName, Object... args) static voidsetProperty(Object instance, String propertyName, Object value) static voidsetStaticProperty(IType type, String propertyName, Object value) static voidsetStaticProperty(String className, String propertyName, Object value)
-
Constructor Details
-
ReflectUtil
public ReflectUtil()
-
-
Method Details
-
construct
-
constructGosuClassInstance
-
invokeStaticMethod
-
setStaticProperty
-
setStaticProperty
-
getStaticProperty
-
getStaticProperty
-
invokeMethod
-
setProperty
-
getProperty
-
getClass
-
getClassButThrowIfInvalid
-
coerceArgsIfNecessary
-
findProperty
-
findCallableMethod
-
findCallableConstructor
-
ensureTypeIsValid
-
extractRuntimeTypes
-
coerce
-
getEnclosingClassInstance
-