Package gw.internal.gosu.runtime
Class GosuRuntimeMethods
- java.lang.Object
-
- gw.internal.gosu.runtime.GosuRuntimeMethods
-
public class GosuRuntimeMethods extends Object
-
-
Constructor Summary
Constructors Constructor Description GosuRuntimeMethods()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiderror(Object strError)static ObjectgetProperty(Object root, IType type, String propertyName)static ObjectgetPropertyDynamically(Object rootObject, String propertyName)static ITypegetType(Object obj)static ITypegetTypeForTypeVar(Object ref, IType iface, int iIndex)static ObjectinitMultiArray(IType componentType, Object instance, int iDimension, int[] sizes)static voidinvokeLockMethod(Object o)static ObjectinvokeMethod(Class c, String methodName, Class[] argTypes, Object root, Object[] args)static ObjectinvokeMethodInfo(IType type, String methodName, IType[] parameterTypes, Object root, Object[] args)static voidinvokeUnlockOrDisposeOrCloseMethod(Object o)static booleanisStructurallyAssignable(IType toType, IType fromType)static booleanlogicalNot(Object o)static ClasslookUpClass(String className)static ObjectnewInstance(IType type, Object ctx, Object[] args)static voidprint(Object obj)static voidsetProperty(Object root, IType type, String propertyName, Object value)static voidsetPropertyDynamically(Object rootObject, String propertyName, Object value)static StringtoString(Object obj)static ITypetypeof(Object o)
-
-
-
Method Detail
-
getPropertyDynamically
public static Object getPropertyDynamically(Object rootObject, String propertyName)
-
setProperty
public static void setProperty(Object root, IType type, String propertyName, Object value)
-
setPropertyDynamically
public static void setPropertyDynamically(Object rootObject, String propertyName, Object value)
-
initMultiArray
public static Object initMultiArray(IType componentType, Object instance, int iDimension, int[] sizes)
-
invokeMethod
public static Object invokeMethod(Class c, String methodName, Class[] argTypes, Object root, Object[] args)
-
invokeMethodInfo
public static Object invokeMethodInfo(IType type, String methodName, IType[] parameterTypes, Object root, Object[] args)
-
invokeLockMethod
public static void invokeLockMethod(Object o)
-
logicalNot
public static boolean logicalNot(Object o)
-
invokeUnlockOrDisposeOrCloseMethod
public static void invokeUnlockOrDisposeOrCloseMethod(Object o)
-
isStructurallyAssignable
public static boolean isStructurallyAssignable(IType toType, IType fromType)
-
print
public static void print(Object obj)
-
error
public static void error(Object strError)
-
-