Package | Description |
---|---|
com.github.javaparser | |
com.github.javaparser.ast.expr | |
com.github.javaparser.ast.nodeTypes | |
com.github.javaparser.ast.stmt |
Modifier and Type | Field and Description |
---|---|
static ParseStart<Statement> |
ParseStart.STATEMENT |
Modifier and Type | Method and Description |
---|---|
static Statement |
JavaParser.parseStatement(String statement)
|
Modifier and Type | Method and Description |
---|---|
Statement |
LambdaExpr.getBody() |
Modifier and Type | Method and Description |
---|---|
LambdaExpr |
LambdaExpr.setBody(Statement body) |
Constructor and Description |
---|
LambdaExpr(NodeList<Parameter> parameters,
Statement body,
boolean isEnclosingParameters) |
LambdaExpr(Range range,
NodeList<Parameter> parameters,
Statement body,
boolean isEnclosingParameters) |
Modifier and Type | Method and Description |
---|---|
default <A extends Statement> |
NodeWithStatements.addAndGetStatement(A statement) |
Modifier and Type | Method and Description |
---|---|
default Statement |
NodeWithStatements.addAndGetStatement(int index,
Statement statement) |
Statement |
NodeWithBody.getBody() |
default Statement |
NodeWithStatements.getStatement(int i) |
Modifier and Type | Method and Description |
---|---|
NodeList<Statement> |
NodeWithStatements.getStatements() |
Modifier and Type | Method and Description |
---|---|
default Statement |
NodeWithStatements.addAndGetStatement(int index,
Statement statement) |
default N |
NodeWithStatements.addStatement(int index,
Statement statement) |
default N |
NodeWithStatements.addStatement(Statement statement) |
N |
NodeWithBody.setBody(Statement body) |
default N |
NodeWithStatements.setStatement(int i,
Statement statement) |
Modifier and Type | Method and Description |
---|---|
default N |
NodeWithStatements.copyStatements(NodeList<Statement> nodeList) |
N |
NodeWithStatements.setStatements(NodeList<Statement> statements) |
Modifier and Type | Class and Description |
---|---|
class |
AssertStmt
A usage of the keyword "assert"
In assert dead : "Wasn't expecting to be dead here"; the check is "dead" and the message is the string. |
class |
BlockStmt
Statements in between { and }.
|
class |
BreakStmt
A usage of the break keyword.
|
class |
ContinueStmt
A continue statement with an optional label;
continue brains;
continue; |
class |
DoStmt
A do-while.
|
class |
EmptyStmt
Deprecated.
these ;'s should be ignored
|
class |
ExplicitConstructorInvocationStmt
A call to super or this in a constructor or initializer.
|
class |
ExpressionStmt
Used to wrap an expression so that it can take the place of a statement.
|
class |
ForeachStmt
A for-each statement.
|
class |
ForStmt
A classic for statement.
|
class |
IfStmt
An if-then-else statement.
|
class |
LabeledStmt
A statement that is labeled, like
label123: println("continuing"); |
class |
LocalClassDeclarationStmt
A class declaration inside a method.
|
class |
ReturnStmt
The return statement, with an optional expression to return.
|
class |
SwitchEntryStmt
One case in a switch statement.
|
class |
SwitchStmt
A switch statement.
|
class |
SynchronizedStmt
Usage of the synchronized keyword.
|
class |
ThrowStmt
Usage of the throw statement.
|
class |
TryStmt
The try statement.
|
class |
WhileStmt
A while statement.
|
Modifier and Type | Method and Description |
---|---|
Statement |
Statement.clone() |
Statement |
DoStmt.getBody() |
Statement |
ForeachStmt.getBody() |
Statement |
WhileStmt.getBody() |
Statement |
ForStmt.getBody() |
Statement |
LabeledStmt.getStatement() |
Statement |
IfStmt.getThenStmt() |
Modifier and Type | Method and Description |
---|---|
Optional<Statement> |
IfStmt.getElseStmt() |
NodeList<Statement> |
BlockStmt.getStatements() |
NodeList<Statement> |
SwitchEntryStmt.getStatements() |
Modifier and Type | Method and Description |
---|---|
DoStmt |
DoStmt.setBody(Statement body) |
ForeachStmt |
ForeachStmt.setBody(Statement body) |
WhileStmt |
WhileStmt.setBody(Statement body) |
ForStmt |
ForStmt.setBody(Statement body) |
IfStmt |
IfStmt.setElseStmt(Statement elseStmt)
Sets the elseStmt
|
LabeledStmt |
LabeledStmt.setStatement(Statement statement) |
IfStmt |
IfStmt.setThenStmt(Statement thenStmt) |
Modifier and Type | Method and Description |
---|---|
BlockStmt |
BlockStmt.setStatements(NodeList<Statement> statements) |
SwitchEntryStmt |
SwitchEntryStmt.setStatements(NodeList<Statement> statements) |
Constructor and Description |
---|
BlockStmt(NodeList<Statement> statements) |
BlockStmt(Range range,
NodeList<Statement> statements) |
SwitchEntryStmt(Expression label,
NodeList<Statement> statements) |
SwitchEntryStmt(Range range,
Expression label,
NodeList<Statement> statements) |
Copyright © 2007–2017. All rights reserved.