public interface NodeWithStatements<N extends Node>
Modifier and Type | Method and Description |
---|---|
default <A extends Statement> |
addAndGetStatement(A statement) |
default ExpressionStmt |
addAndGetStatement(Expression expr) |
default Statement |
addAndGetStatement(int index,
Statement statement) |
default ExpressionStmt |
addAndGetStatement(String statement) |
default N |
addStatement(Expression expr) |
default N |
addStatement(int index,
Expression expr) |
default N |
addStatement(int index,
Statement statement) |
default N |
addStatement(Statement statement) |
default N |
addStatement(String statement)
It will use
JavaParser.parseStatement(String) inside, so it should end with a semi column |
default N |
copyStatements(NodeList<Statement> nodeList) |
default N |
copyStatements(NodeWithStatements<?> other) |
default Statement |
getStatement(int i) |
NodeList<Statement> |
getStatements() |
default boolean |
isEmpty() |
default N |
setStatement(int i,
Statement statement) |
N |
setStatements(NodeList<Statement> statements) |
default Statement getStatement(int i)
default N addStatement(Expression expr)
default N addStatement(String statement)
JavaParser.parseStatement(String)
inside, so it should end with a semi columndefault N addStatement(int index, Expression expr)
default <A extends Statement> A addAndGetStatement(A statement)
default ExpressionStmt addAndGetStatement(Expression expr)
default ExpressionStmt addAndGetStatement(String statement)
default boolean isEmpty()
default N copyStatements(NodeWithStatements<?> other)
Copyright © 2007–2018. All rights reserved.