Package wyvern.targets.Common.wyvernIL.interpreter.values

Examples of wyvern.targets.Common.wyvernIL.interpreter.values.BytecodeBoolean


  }

  @Override
  public BytecodeContext visit(IfStmt ifStmt) {
    BytecodeValue val = ifStmt.getCondition().accept(visitor);
    BytecodeBoolean bool = (BytecodeBoolean) val;
    if(bool.getValue()) {
      int id = ifStmt.getLabel().getIdx();
      int newPC = interperter.getLabelPC(id);
      interperter.setProgramCounter(newPC);
    }
    return context;
View Full Code Here


    BytecodeValue res = runTest(s);
    assertEquals(res.toString(), "()");

    String[] names = { "a", "b", "c", "d", "e" };
    BytecodeValue[] vals = { new BytecodeInt(8), new BytecodeInt(6),
        new BytecodeBoolean(false), new BytecodeString("hello"),
        new BytecodeInt(3)};
    assertTrue(isInContext(names, vals));   
  }
View Full Code Here

TOP

Related Classes of wyvern.targets.Common.wyvernIL.interpreter.values.BytecodeBoolean

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.