|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--jreversepro.reflect.method.JBlockObject
| Field Summary | |
protected java.lang.String |
indent
Directed indentation |
| Constructor Summary | |
JBlockObject()
Creates a new instance of BranchObject |
|
| Method Summary | |
void |
addBlock(JBlockObject _jbo)
Called to add a sub block |
void |
addStatement(JLineOfCode _loc)
Called to add a line of code |
protected java.lang.String |
getEntryCode()
Returns any starting code to open the block as a String |
protected JLineOfCode |
getEntryLineOfCode()
Returns any starting code to open the block as a JLineOfCode |
protected java.lang.String |
getExitCode()
Returns any terminating code to close the block as a String |
protected JLineOfCode |
getExitLineOfCode()
Returns any terminating code to close the block as a JLineOfCode |
java.util.Vector |
getFlattenedCode(java.lang.String _indent)
Outputs the method code contained in this block (and sub-blocks) as a vector of JLineOfCode objects |
protected boolean |
isSimpleBlock()
Returns TRUE if block has only one stmt or block & does not need bracketing, otherwise returns FALSE. |
boolean |
removeLastBlock()
Called to remove last block |
JLineOfCode |
removeLastStatement()
Called to remove the last line of code added |
java.lang.String |
toString(java.lang.String _indent)
Outputs the method code contained in this block (and sub-blocks) as a string |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String indent
| Constructor Detail |
public JBlockObject()
| Method Detail |
protected boolean isSimpleBlock()
public void addBlock(JBlockObject _jbo)
public boolean removeLastBlock()
public void addStatement(JLineOfCode _loc)
public JLineOfCode removeLastStatement()
protected java.lang.String getEntryCode()
protected java.lang.String getExitCode()
protected JLineOfCode getEntryLineOfCode()
protected JLineOfCode getExitLineOfCode()
public java.lang.String toString(java.lang.String _indent)
public java.util.Vector getFlattenedCode(java.lang.String _indent)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||