public class JStmtBlock extends JStmt
Modifier and Type | Field and Description |
---|---|
java.util.List<JStmt> |
statements |
Constructor and Description |
---|
JStmtBlock() |
Modifier and Type | Method and Description |
---|---|
void |
addStatement(JStmt aStmt,
int anIndex)
Adds a statement.
|
JStmtBlock |
getBlock()
Returns the statement block.
|
java.util.List<JStmt> |
getStatements()
Returns the list of statements.
|
JVariableDecl |
getVariableDeclInside(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.
|
boolean |
isBlock()
Returns whether statement has a block associated with it.
|
JStmt |
removeStatement(int anIndex)
Removes a statement.
|
int |
removeStatement(JStmt aStmt)
Removes a statement.
|
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, setClassName, setClassRef, setEndToken, setJClass, setParent, setStartToken, toString
public java.util.List<JStmt> statements
public java.util.List<JStmt> getStatements()
public boolean isBlock()
public JStmtBlock getBlock()
public void addStatement(JStmt aStmt, int anIndex)
public JStmt removeStatement(int anIndex)
public int removeStatement(JStmt aStmt)
public JVariableDecl getVariableDeclInside(java.lang.String aName)
getVariableDeclInside
in class JNode
public java.util.List<JVariableDecl> getVariableDecls(java.lang.String aPrefix, java.util.List<JVariableDecl> theVariables)
getVariableDecls
in class JNode