Class JStmtBlock
java.lang.Object
com.inductiveautomation.snap.javatree.JNode
com.inductiveautomation.snap.javatree.JStmt
com.inductiveautomation.snap.javatree.JStmtBlock
A Java statement for a block of statements.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddStatement(JStmt aStmt, int anIndex) Adds a statement.getBlock()Returns the statement block.Returns the list of statements.getVariableDeclInside(String aName) Returns a variable with given name.getVariableDecls(String aPrefix, List<JVariableDecl> theVariables) Returns a variable with given name.booleanisBlock()Returns whether statement has a block associated with it.removeStatement(int anIndex) Removes a statement.intremoveStatement(JStmt aStmt) Removes a statement.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, setClassName, setClassRef, setEndToken, setJClass, setParent, setStartToken, toString
- 
Field Details- 
statements
 
- 
- 
Constructor Details- 
JStmtBlockpublic JStmtBlock()
 
- 
- 
Method Details- 
getStatementsReturns the list of statements.
- 
isBlockpublic boolean isBlock()Returns whether statement has a block associated with it.
- 
getBlockReturns the statement block.
- 
addStatementAdds a statement.
- 
removeStatementRemoves a statement.
- 
removeStatementRemoves a statement.
- 
getVariableDeclInsideReturns a variable with given name.- Overrides:
- getVariableDeclInsidein class- JNode
 
- 
getVariableDeclsReturns a variable with given name.- Overrides:
- getVariableDeclsin class- JNode
 
 
-