Class GosuRuntimeMethods

java.lang.Object
gw.internal.gosu.runtime.GosuRuntimeMethods

public class GosuRuntimeMethods extends Object
  • Constructor Details

    • GosuRuntimeMethods

      public GosuRuntimeMethods()
  • Method Details

    • getProperty

      public static Object getProperty(Object root, IType type, String propertyName)
    • isDynamic

      private static boolean isDynamic(IType type)
    • invokePropertyGetter

      private static Object invokePropertyGetter(String dispatchName, Object root, IType type, String propertyName)
    • getPropertyDynamically

      public static Object getPropertyDynamically(Object rootObject, String propertyName)
    • setProperty

      public static void setProperty(Object root, IType type, String propertyName, Object value)
    • invokePropertySetter

      private static Object invokePropertySetter(String dispatchName, Object root, IType type, String propertyName, Object... args)
    • setPropertyDynamically

      public static void setPropertyDynamically(Object rootObject, String propertyName, Object value)
    • getPropertyInfo

      private static IPropertyInfo getPropertyInfo(Object rootObject, IType type, String propertyName)
    • initMultiArray

      public static Object initMultiArray(IType componentType, Object instance, int iDimension, int[] sizes)
    • getType

      public static IType getType(Object obj)
    • newInstance

      public static Object newInstance(IType type, Object ctx, Object[] args)
    • maybeAddOuter

      private static Object[] maybeAddOuter(IType type, Object ctx, Object[] args)
    • 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)
    • invoke

      private static Object invoke(Object o, Object[] args)
    • replaceDynamicTypesWithRuntimeTypes

      private static IType[] replaceDynamicTypesWithRuntimeTypes(IType[] parameterTypes, Object[] args)
    • invokeMethodInvoker

      private static Object invokeMethodInvoker(String dispatchName, Object root, IType type, String methodName, Object... args)
    • lookUpClass

      public static Class lookUpClass(String className)
    • invokeLockMethod

      public static void invokeLockMethod(Object o)
    • typeof

      public static IType typeof(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)
    • toString

      public static String toString(Object obj)
    • error

      public static void error(Object strError)
    • getTypeForTypeVar

      public static IType getTypeForTypeVar(Object ref, IType iface, int iIndex)