jreversepro.reflect.method
Class JForBlock

java.lang.Object
  extended by jreversepro.reflect.method.JBlockObject
      extended by jreversepro.reflect.method.JForBlock

public class JForBlock
extends JBlockObject

Author:
pazandak@objs.com -- Copyright 2002.

Field Summary
 
Fields inherited from class jreversepro.reflect.method.JBlockObject
indent
 
Constructor Summary
JForBlock(JBranchEntry _jbe, java.lang.String _test)
          Creates a new instance of JForBlock
JForBlock(JBranchEntry _jbe, java.lang.String _init, java.lang.String _test, java.lang.String _loop)
          Creates a new instance of JForBlock
 
Method Summary
protected  java.lang.String getEntryCode()
          Outputs any starting code to open the block
protected  java.lang.String getExitCode()
          Outputs any terminating code to close the block
 void setInitExpr(java.lang.String _init)
          Set the init expression
 void setLoopExpr(java.lang.String _loop)
          Set the loop expression
 void setTestExpr(java.lang.String _test)
          Set the loop expression
 
Methods inherited from class jreversepro.reflect.method.JBlockObject
addBlock, addStatement, getEntryLineOfCode, getExitLineOfCode, getFlattenedCode, isSimpleBlock, removeLastBlock, removeLastStatement, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JForBlock

public JForBlock(JBranchEntry _jbe,
                 java.lang.String _test)
Creates a new instance of JForBlock


JForBlock

public JForBlock(JBranchEntry _jbe,
                 java.lang.String _init,
                 java.lang.String _test,
                 java.lang.String _loop)
Creates a new instance of JForBlock

Method Detail

setInitExpr

public void setInitExpr(java.lang.String _init)
Set the init expression


setTestExpr

public void setTestExpr(java.lang.String _test)
Set the loop expression


setLoopExpr

public void setLoopExpr(java.lang.String _loop)
Set the loop expression


getEntryCode

protected java.lang.String getEntryCode()
Outputs any starting code to open the block

Overrides:
getEntryCode in class JBlockObject

getExitCode

protected java.lang.String getExitCode()
Outputs any terminating code to close the block

Overrides:
getExitCode in class JBlockObject


Submit Feedback to akkumar@users.sourceforge.net