Class JStmtFor
- java.lang.Object
- 
- com.inductiveautomation.snap.javatree.JNode
- 
- com.inductiveautomation.snap.javatree.JStmt
- 
- com.inductiveautomation.snap.javatree.JStmtFor
 
 
 
- 
 public class JStmtFor extends JStmt A JStatement for for() statements.
- 
- 
Field SummaryFields Modifier and Type Field Description JExprconditionalJStmtVariableDeclinitDecljava.util.List<JStmtExpr>initStmtsJStmtstatementjava.util.List<JStmtExpr>updateStmts
 - 
Constructor SummaryConstructors Constructor Description JStmtFor()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description JStmtBlockgetBlock()Returns the statement block.JExprgetConditional()Returns the conditional.JStmtVariableDeclgetInitDecl()Returns the init declaration.java.util.List<JStmtExpr>getInitStmts()Returns the init statements.java.util.List<JStmtExpr>getUpdateStmts()Returns the update statements.JVariableDeclgetVariableDeclInside(java.lang.String aName)Returns a variable with given name.booleanisBlock()Returns whether statement has a block associated with it.- 
Methods inherited from class com.inductiveautomation.snap.javatree.JNodeaddChild, 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
 
- 
 
- 
- 
- 
Field Detail- 
initDeclpublic JStmtVariableDecl initDecl 
 - 
conditionalpublic JExpr conditional 
 - 
updateStmtspublic java.util.List<JStmtExpr> updateStmts 
 - 
initStmtspublic java.util.List<JStmtExpr> initStmts 
 - 
statementpublic JStmt statement 
 
- 
 - 
Method Detail- 
getInitDeclpublic JStmtVariableDecl getInitDecl() Returns the init declaration.
 - 
getConditionalpublic JExpr getConditional() Returns the conditional.
 - 
getUpdateStmtspublic java.util.List<JStmtExpr> getUpdateStmts() Returns the update statements.
 - 
getInitStmtspublic java.util.List<JStmtExpr> getInitStmts() Returns the init statements.
 - 
isBlockpublic boolean isBlock() Returns whether statement has a block associated with it.
 - 
getBlockpublic JStmtBlock getBlock() Returns the statement block.
 - 
getVariableDeclInsidepublic JVariableDecl getVariableDeclInside(java.lang.String aName) Returns a variable with given name.- Overrides:
- getVariableDeclInsidein class- JNode
 
 
- 
 
-