Package zz.jinterp.SimpleInterp

Examples of zz.jinterp.SimpleInterp.SimpleArray


        push(new JInt(aOperand));
        break;
       
      case NEWARRAY: {
        JInt size = (JInt) pop();
        push(new SimpleArray(size.v));
      } break;
       
      default:
        throw new UnsupportedOperationException();
      }
View Full Code Here


        push(theClass.newInstance());
      } break;
       
      case ANEWARRAY:{
        JInt size = (JInt) pop();
        push(new SimpleArray(size.v));
      } break;
       
      case CHECKCAST: {
        JInstance o = (JInstance) pop();
        JClass theClass = getInterpreter().getClass(aType);
View Full Code Here

   
    theInstance.putFieldValue(fOffset, JInt._0);
    theInstance.putFieldValue(fCount, new JInt(aString.length()));
    theInstance.putFieldValue(fHash, new JInt(aString.hashCode()));
   
    JArray theValue = new SimpleArray(aString.length());
    for(int i=0;i<aString.length();i++) theValue.set(i, new JChar(aString.charAt(i)));
    theInstance.putFieldValue(fValue, theValue);
   
    return theInstance;
  }
View Full Code Here

TOP

Related Classes of zz.jinterp.SimpleInterp.SimpleArray

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.