Package weasel.interpreter

Examples of weasel.interpreter.WeaselNativeMethod.invoke()


        WeaselMethodBody methodBody = interpreter.baseTypes.getlObjectEqualMethod().getMethod(o1);
        if(methodBody.isNative()){
          WeaselNativeMethod nativeMethod = interpreter.getNativeMethod(methodBody.getNameAndDesk());
          Object[] params = new Object[1];
          params[0] = o2;
          Object ret = nativeMethod.invoke(interpreter, thread, method, methodBody.getNameAndDesk(), o1, params);
          thread.pushValue((Boolean)ret);
        }else{
          thread.pushObject(obj1);
          thread.pushObject(obj2);
          thread.call(methodBody);
View Full Code Here


        WeaselMethodBody methodBody = interpreter.baseTypes.getlObjectEqualMethod().getMethod(o1);
        if(methodBody.isNative()){
          WeaselNativeMethod nativeMethod = interpreter.getNativeMethod(methodBody.getNameAndDesk());
          Object[] params = new Object[1];
          params[0] = o2;
          Object ret = nativeMethod.invoke(interpreter, thread, method, methodBody.getNameAndDesk(), o1, params);
          thread.pushValue(!(Boolean)ret);
        }else{
          thread.pushObject(obj1);
          thread.pushObject(obj2);
          thread.call(methodBody);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.