Examples of Instruction


Examples of cz.cuni.mff.abacs.burglar.logics.planning.instructions.Instruction

    if(a.size() != b.size()){
      return false;
    }
   
    for(int i = 0; i < a.size(); i++){
      Instruction instrA = a.get(i);
      Instruction instrB = b.get(i);
      if(instrA.matches(instrB) == false)
        return false;
    }
   
    return true;
View Full Code Here

Examples of de.fub.bytecode.generic.Instruction

      _local = null;
  }
    }
   
    public Instruction loadInstruction() {
  final Instruction instr = _loadInstruction;
  return instr != null
      ? instr : (_loadInstruction = _type.LOAD(_local.getIndex()));
    }
View Full Code Here

Examples of electric.xml.Instruction

        return getStringValue( elem );
    }

    public String getProcessingInstructionTarget(Object obj)
    {
        Instruction pi = (Instruction) obj;

        return pi.getTarget();
    }
View Full Code Here

Examples of fitnesse.slim.instructions.Instruction

      "|DT:slim test|\n" +
        "|x|\n" +
        "|y|\n"
    );

    Instruction makeInstruction = new MakeInstruction("decisionTable_id_0", "decisionTable_id", "SlimTest");
    assertEquals(makeInstruction, instructions.get(0));
  }
View Full Code Here

Examples of fitnesse.testsystems.Instruction

  @Override
  public void testAssertionVerified(Assertion assertion, TestResult testResult) {
    if (testResult == null) {
      return;
    }
    Instruction instruction = assertion.getInstruction();
    Expectation expectation = assertion.getExpectation();
    TestExecutionReport.InstructionResult instructionResult = new TestExecutionReport.InstructionResult();
    instructionResults.add(instructionResult);

    String id = instruction.getId();

    instructionResult.instruction = instruction.toString();
    instructionResult.slimResult = testResult.toString();
    try {
      TestExecutionReport.Expectation expectationResult = new TestExecutionReport.Expectation();
      instructionResult.addExpectation(expectationResult);
      expectationResult.instructionId = id;
View Full Code Here

Examples of gov.nasa.jpf.jvm.bytecode.Instruction

   * Prints a warning message if the istruction that is being executed is
   * accessing a fields that was generated.
   */
  @Override
  public void executeInstruction(JVM vm) {
    Instruction last = vm.getNextInstruction();
    if(last instanceof FieldInstruction) {
      FieldInfo accessed = ((FieldInstruction) last).getFieldInfo();
      if(isGenerated(accessed))
        logger.warning("The field " + accessed.getFullName() + " is missing from " +
            "the model class.\n\ta default implementation is being used.");
View Full Code Here

Examples of gov.nasa.jpf.vm.Instruction

  public static final Object readFlag = new Object();
  public static final Object writeFlag = new Object();

  @Override
  public Instruction invokevirtual(String clsName, String methodName, String methodSignature) {
    Instruction i = super.invokevirtual(clsName, methodName, methodSignature);
    if (clsName.equals("java/net/Socket") && methodName.equals("connect")) {
      i.setAttr(connectFlag);
    } else if (clsName.equals("java/net/ServerSocket") && methodName.equals("accept")) {
      i.setAttr(acceptFlag);
    } else if (clsName.equals("java/io/InputStream") && methodName.equals("read")) {
      i.setAttr(readFlag);
    } else if (clsName.equals("java/io/OutputStream") && methodName.equals("write")) {
      i.setAttr(writeFlag);
    }
    return i;
  }
View Full Code Here

Examples of gpinterpreter.Instruction

    public static List<Instruction> getProgram(List<Gene> individual, GeneType geneType, ClusterHead in) {
        List<Instruction> program = new ArrayList<Instruction>();

        for (int i = 0; i < individual.size(); i++) {
            Instruction inst = null;
            switch (geneType) {
                case INTEGER:
                    IntegerGene g = (IntegerGene) (individual.get(i));
                    inst = IntegerInstructionGene.getInstruction(g.intValue(),
                            in.getSize());
View Full Code Here

Examples of info.s5d.assembly.instruction.Instruction

  {
    /*for (Instruction instruction : instructions) {
      instruction.handleInstruction(insnHandler);
    }*/
    for (int i = start; i < size(); i++) {
      Instruction instruction = instructionAt(i);
      if (instruction == null)
        return; //we're done
      try {
        instruction.handleInstruction(insnHandler);
      } catch (Exception e) {
       
      }
    }
  }
View Full Code Here

Examples of jbet.Instruction

        jbet.MethodInfo mi = new jbet.MethodInfo("<init>",
                emptyDesc,
                jbet.MethodInfo.ACC_PUBLIC);
        mi.code = new Snippit();
        mi.code.push(new Instruction().setAload(0));
        mi.code.push(new Instruction().setInvokeSpecial("java/lang/Object",
                "<init>",
                emptyDesc));
        mi.code.push(new Instruction().setReturn());
        mi.maxLocals = 1;
        mi.maxStack = 1;
        ci.addMethod(mi);

        mi = new jbet.MethodInfo("main", mainDesc, jbet.MethodInfo.ACC_PUBLIC
                | jbet.MethodInfo.ACC_STATIC);
        mi.code = new Snippit();
        mi.code.push(new Instruction().setGetstatic("java/lang/System",
                "out",
                printStreamType));
        mi.code.push(new Instruction().setSpush("Hello world!"));
        mi.code.push(new Instruction().setInvokeVirtual("java/io/PrintStream",
                "println",
                printlnDesc));
        mi.maxLocals = 1;
        mi.maxStack = 2;
        ci.addMethod(mi);
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.