public class JStmtFor extends JStmt
Modifier and Type | Field and Description |
---|---|
JExpr |
conditional |
JStmtVariableDecl |
initDecl |
java.util.List<JStmtExpr> |
initStmts |
JStmt |
statement |
java.util.List<JStmtExpr> |
updateStmts |
Constructor and Description |
---|
JStmtFor() |
Modifier and Type | Method and Description |
---|---|
JStmtBlock |
getBlock()
Returns the statement block.
|
JExpr |
getConditional()
Returns the conditional.
|
JStmtVariableDecl |
getInitDecl()
Returns the init declaration.
|
java.util.List<JStmtExpr> |
getInitStmts()
Returns the init statements.
|
java.util.List<JStmtExpr> |
getUpdateStmts()
Returns the update statements.
|
JVariableDecl |
getVariableDeclInside(java.lang.String aName)
Returns a variable with given name.
|
boolean |
isBlock()
Returns whether statement has a block associated with it.
|
addChild, buildChildren, getChild, getChildCount, getChildren, getClassLoader, getClassName, getClassNameImpl, getClassRef, getClassRefImpl, getEnclosingClassDecl, getEnclosingMemberDecl, getEnclosingMethodDecl, getEnd, getEndToken, getFile, getJClass, getLineIndex, getName, getNameImpl, getNodeAtCharIndex, getNodeFields, getNodeFieldsImpl, getNodeParents, getNodePath, getNodeString, getOthers, getParent, getParent, getReferencedClasses, getReferencedClassNames, getReferencedClassNames, getReferencedClassNames, getStart, getStartToken, getString, getVariableDecl, getVariableDecls, setClassName, setClassRef, setEndToken, setJClass, setParent, setStartToken, toString
public JStmtVariableDecl initDecl
public JExpr conditional
public java.util.List<JStmtExpr> updateStmts
public java.util.List<JStmtExpr> initStmts
public JStmt statement
public JStmtVariableDecl getInitDecl()
public JExpr getConditional()
public java.util.List<JStmtExpr> getUpdateStmts()
public java.util.List<JStmtExpr> getInitStmts()
public boolean isBlock()
public JStmtBlock getBlock()
public JVariableDecl getVariableDeclInside(java.lang.String aName)
getVariableDeclInside
in class JNode