com.borland.jbuilder.jot
Interface JotFor

All Superinterfaces:
JotMarker, JotSourceElement, JotStatement

public interface JotFor
extends JotStatement

This interface represents a Java for statement. See section 14.12 in the Java Language Specification for more information.


Method Summary
 JotCodeBlock getCodeBlock()
          Returns the body of the for statement.
 JotExpression getCondition()
          Returns the JotExpression representing the condition section of a for statement.
 JotExpression[] getIncrements()
          Returns an array of JotExpression instances representing the increment section of a for statement.
 JotSourceElement[] getInitializers()
          Returns an array containing a single JotVariableDeclaration or the JotExpressions contained in the initialization section of a for statement.
 
Methods inherited from interface com.borland.jbuilder.jot.JotStatement
getStatements
 
Methods inherited from interface com.borland.jbuilder.jot.JotMarker
addUserData, getEndPosition, getStartPosition, getUserData
 
Methods inherited from interface com.borland.jbuilder.jot.JotSourceElement
getIndentLevel, getParent, getText, isModified, setModified, setText
 

Method Detail

getInitializers

public JotSourceElement[] getInitializers()
Returns an array containing a single JotVariableDeclaration or the JotExpressions contained in the initialization section of a for statement. If the initialization section is empty, then returns a zero-length array.

getCondition

public JotExpression getCondition()
Returns the JotExpression representing the condition section of a for statement. If there is no condition section, then returns null.

getIncrements

public JotExpression[] getIncrements()
Returns an array of JotExpression instances representing the increment section of a for statement. If the increment section is empty, then returns a zero-length array.

getCodeBlock

public JotCodeBlock getCodeBlock()
Returns the body of the for statement.
Specified by:
getCodeBlock in interface JotStatement