com.tapina.robe.runtime.instruction
Class Branch

java.lang.Object
  extended bycom.tapina.robe.runtime.Instruction
      extended bycom.tapina.robe.runtime.instruction.Branch

public final class Branch
extends Instruction

Created by IntelliJ IDEA. User: gareth Date: Aug 26, 2003 Time: 6:23:59 PM


Field Summary
 
Fields inherited from class com.tapina.robe.runtime.Instruction
count
 
Constructor Summary
Branch(Condition condition, boolean link, int offset)
           
 
Method Summary
 void dumpJavaSourceUnconditional(java.io.Writer out)
           
protected  boolean execute(Environment environment)
          Try to avoid having much in the way of conditionals in this method - it should execute straight through and be as easily optimised/inlined as possible for speed.
 java.lang.String toString()
           
 
Methods inherited from class com.tapina.robe.runtime.Instruction
checkAndExecute, dumpCondition, dumpJavaSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Branch

public Branch(Condition condition,
              boolean link,
              int offset)
Method Detail

execute

protected final boolean execute(Environment environment)
Description copied from class: Instruction
Try to avoid having much in the way of conditionals in this method - it should execute straight through and be as easily optimised/inlined as possible for speed. Do all your ifs and buts in the decoder or the constructor to this class.

Specified by:
execute in class Instruction
Parameters:
environment -
Returns:
true if the pipeline should be flushed (i.e. branch has occurred)

dumpJavaSourceUnconditional

public void dumpJavaSourceUnconditional(java.io.Writer out)
                                 throws java.io.IOException
Specified by:
dumpJavaSourceUnconditional in class Instruction
Throws:
java.io.IOException

toString

public final java.lang.String toString()


Copyright © 2003-2005 . All Rights Reserved.