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 Summary
Fields Modifier and Type Field Description JExpr
conditional
JStmtVariableDecl
initDecl
java.util.List<JStmtExpr>
initStmts
JStmt
statement
java.util.List<JStmtExpr>
updateStmts
-
Constructor Summary
Constructors Constructor Description JStmtFor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.inductiveautomation.snap.javatree.JNode
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
-
-
-
-
Field Detail
-
initDecl
public JStmtVariableDecl initDecl
-
conditional
public JExpr conditional
-
updateStmts
public java.util.List<JStmtExpr> updateStmts
-
initStmts
public java.util.List<JStmtExpr> initStmts
-
statement
public JStmt statement
-
-
Method Detail
-
getInitDecl
public JStmtVariableDecl getInitDecl()
Returns the init declaration.
-
getConditional
public JExpr getConditional()
Returns the conditional.
-
getUpdateStmts
public java.util.List<JStmtExpr> getUpdateStmts()
Returns the update statements.
-
getInitStmts
public java.util.List<JStmtExpr> getInitStmts()
Returns the init statements.
-
isBlock
public boolean isBlock()
Returns whether statement has a block associated with it.
-
getBlock
public JStmtBlock getBlock()
Returns the statement block.
-
getVariableDeclInside
public JVariableDecl getVariableDeclInside(java.lang.String aName)
Returns a variable with given name.- Overrides:
getVariableDeclInside
in classJNode
-
-