Class JStmtBlock
- java.lang.Object
- 
- com.inductiveautomation.snap.javatree.JNode
- 
- com.inductiveautomation.snap.javatree.JStmt
- 
- com.inductiveautomation.snap.javatree.JStmtBlock
 
 
 
- 
 public class JStmtBlock extends JStmt A Java statement for a block of statements.
- 
- 
Field SummaryFields Modifier and Type Field Description java.util.List<JStmt>statements
 - 
Constructor SummaryConstructors Constructor Description JStmtBlock()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddStatement(JStmt aStmt, int anIndex)Adds a statement.JStmtBlockgetBlock()Returns the statement block.java.util.List<JStmt>getStatements()Returns the list of statements.JVariableDeclgetVariableDeclInside(java.lang.String aName)Returns a variable with given name.java.util.List<JVariableDecl>getVariableDecls(java.lang.String aPrefix, java.util.List<JVariableDecl> theVariables)Returns a variable with given name.booleanisBlock()Returns whether statement has a block associated with it.JStmtremoveStatement(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 Detail- 
statementspublic java.util.List<JStmt> statements 
 
- 
 - 
Method Detail- 
getStatementspublic java.util.List<JStmt> getStatements() Returns the list of statements.
 - 
isBlockpublic boolean isBlock() Returns whether statement has a block associated with it.
 - 
getBlockpublic JStmtBlock getBlock() Returns the statement block.
 - 
addStatementpublic void addStatement(JStmt aStmt, int anIndex) Adds a statement.
 - 
removeStatementpublic JStmt removeStatement(int anIndex) Removes a statement.
 - 
removeStatementpublic int removeStatement(JStmt aStmt) Removes a statement.
 - 
getVariableDeclInsidepublic JVariableDecl getVariableDeclInside(java.lang.String aName) Returns a variable with given name.- Overrides:
- getVariableDeclInsidein class- JNode
 
 - 
getVariableDeclspublic java.util.List<JVariableDecl> getVariableDecls(java.lang.String aPrefix, java.util.List<JVariableDecl> theVariables) Returns a variable with given name.- Overrides:
- getVariableDeclsin class- JNode
 
 
- 
 
-