Package xscript.runtime.object

Examples of xscript.runtime.object.XObject


        try{
          instruction.run(virtualMachine, this, methodExecutor);
        }catch(XRuntimeException e){
          e.printStackTrace();
        }
        XObject obj = virtualMachine.getObjectProvider().getObject(exception);
        if(obj!=null){
          while(methodExecutor!=null && methodExecutor.jumpToExceptionHandlePoint(obj.getXClass(), exception)){
            methodExecutor = methodExecutor.getParent();
          }
        }
      }
    }
View Full Code Here


    long[] params = new long[paramTypes.length];
    for(int i=params.length-1; i>=0; i++){
      int pID = XPrimitive.getPrimitiveID(paramTypes[i].getXClass());
      params[i] = methodExecutor.pop(pID);
      if(pID==XPrimitive.OBJECT){
        XObject obj = vm.getObjectProvider().getObject(params[i]);
        XChecks.checkCast(obj.getXClass(), paramTypes[i]);
      }
    }
    thread.call(method, solvedGenerics, params);
  }
View Full Code Here

      methodExecutor = new XMethodExecutor(methodExecutor, xMethod, generics, params);
    }
  }

  protected void markVisible(){
    XObject obj = virtualMachine.getObjectProvider().getObject(exception);
    if(obj!=null){
      obj.markVisible();
    }
    if(result!=null){
      if(result[1]==XPrimitive.OBJECT){
        obj = virtualMachine.getObjectProvider().getObject(result[0]);
        if(obj!=null){
          obj.markVisible();
        }
      }
    }
    methodExecutor.markVisible();
  }
View Full Code Here

public class XWrapper {

  public static Object getJavaObject(XObjectProvider objectProvider, XGenericClass genericClass, long value){
    switch(XPrimitive.getPrimitiveID(genericClass.getXClass())){
    case XPrimitive.OBJECT:
      XObject obj = objectProvider.getObject(value);
      XChecks.checkCast(obj.getXClass(), genericClass);
      return obj;
    case XPrimitive.BOOL:
      return value!=0;
    case XPrimitive.BYTE:
      return (byte)value;
View Full Code Here

    long[] params = new long[paramTypes.length+1];
    for(int i=params.length-1; i>0; i++){
      int pID = XPrimitive.getPrimitiveID(paramTypes[i-1].getXClass());
      params[i] = methodExecutor.pop(pID);
      if(pID==XPrimitive.OBJECT){
        XObject obj = vm.getObjectProvider().getObject(params[i]);
        XChecks.checkCast(obj.getXClass(), paramTypes[i-1]);
      }
    }
    params[0] = methodExecutor.oPop();
    XObject _this = vm.getObjectProvider().getObject(params[0]);
    method.getMethod(_this);
    thread.call(method, solvedGenerics, params);
  }
View Full Code Here

TOP

Related Classes of xscript.runtime.object.XObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.