Class JStmtFor
java.lang.Object
com.inductiveautomation.snap.javatree.JNode
com.inductiveautomation.snap.javatree.JStmt
com.inductiveautomation.snap.javatree.JStmtFor
A JStatement for for() statements.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBlock()
Returns the statement block.Returns the conditional.Returns the init declaration.Returns the init statements.Returns the update statements.getVariableDeclInside
(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 Details
-
initDecl
-
conditional
-
updateStmts
-
initStmts
-
statement
-
-
Constructor Details
-
JStmtFor
public JStmtFor()
-
-
Method Details
-
getInitDecl
Returns the init declaration. -
getConditional
Returns the conditional. -
getUpdateStmts
Returns the update statements. -
getInitStmts
Returns the init statements. -
isBlock
public boolean isBlock()Returns whether statement has a block associated with it. -
getBlock
Returns the statement block. -
getVariableDeclInside
Returns a variable with given name.- Overrides:
getVariableDeclInside
in classJNode
-