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.booleanisBlock()Returns whether statement has a block associated with it.Methods inherited from class 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
-
getInitStmts
-
isBlock
-
getBlock
-
getVariableDeclInside
Returns a variable with given name.- Overrides:
getVariableDeclInsidein classJNode
-