Package weasel.interpreter

Examples of weasel.interpreter.WeaselClass$WeaselInterfaceMaps


  private void resolve(WeaselInterpreter interpreter){
    if(field==null || type==null){
      int d = fieldDesk.lastIndexOf(":");
      int p = fieldDesk.lastIndexOf(".", d);
      WeaselClass weaselClass = getWeaselClass(interpreter, fieldDesk.substring(0, p));
      field = weaselClass.getField(fieldDesk.substring(p+1, d));
      type = interpreter.getWeaselClass(fieldDesk.substring(d+1));
    }
  }
View Full Code Here


  private void resolve(WeaselInterpreter interpreter){
    if(field==null || type==null){
      int d = fieldDesk.lastIndexOf(":");
      int p = fieldDesk.lastIndexOf(".", d);
      WeaselClass weaselClass = getWeaselClass(interpreter, fieldDesk.substring(0, p));
      field = weaselClass.getField(fieldDesk.substring(p+1, d));
      type = interpreter.getWeaselClass(fieldDesk.substring(d+1));
    }
  }
View Full Code Here

  private void resolve(WeaselInterpreter interpreter){
    if(field==null || type==null){
      int d = fieldDesk.lastIndexOf(":");
      int p = fieldDesk.lastIndexOf(".", d);
      WeaselClass weaselClass = getWeaselClass(interpreter, fieldDesk.substring(0, p));
      field = weaselClass.getField(fieldDesk.substring(p+1, d));
      type = interpreter.getWeaselClass(fieldDesk.substring(d+1));
    }
  }
View Full Code Here

    fill(interpreter, interpreter.getObject(obj), 1, realSizes);
    thread.pushObject(obj);
  }
 
  private void fill(WeaselInterpreter interpreter, WeaselObject array, int depth, int[] realSizes){
    WeaselClass weaselArrayClass = array.getWeaselClass();
    for(int i=0; i<realSizes[depth-1]; i++){
      int obj = interpreter.baseTypes.createArrayObject(realSizes[depth], weaselArrayClass);
      if(depth+1<realSizes.length)
        fill(interpreter, interpreter.getObject(obj), depth+1, realSizes);
      interpreter.baseTypes.setArrayObject(array, i, obj);
View Full Code Here

  private void resolve(WeaselInterpreter interpreter){
    if(field==null || type==null){
      int d = fieldDesk.lastIndexOf(":");
      int p = fieldDesk.lastIndexOf(".", d);
      WeaselClass weaselClass = getWeaselClass(interpreter, fieldDesk.substring(0, p));
      field = weaselClass.getField(fieldDesk.substring(p+1, d));
      type = interpreter.getWeaselClass(fieldDesk.substring(d+1));
    }
  }
View Full Code Here

  }
 
  @Override
  public WeaselClass getClassByName(String className) {
    String classes[] = className.split("\\.", 2);
    WeaselClass wClass = loadedClasses.get(classes[0]);
    if(wClass==null){
      String source = sources.get(className);
      if(source!=null){
        WeaselClassCompiler wClassCompiler = new WeaselClassCompiler(this, classes[0], source);
        loadedClasses.put(className, wClassCompiler);
        classesToPreCompile.add(wClassCompiler);
        wClass = wClassCompiler;
      }else{
        throw new RuntimeException("Class not found "+className);
      }
    }
    if(classes.length==1){
      return wClass;
    }
    return wClass.getChildClass(classes[1]);
  }
View Full Code Here

TOP

Related Classes of weasel.interpreter.WeaselClass$WeaselInterfaceMaps

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.