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(Range range,
NodeList<Parameter> parameters,
Statement body,
boolean parametersEnclosed) |
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.getStmt(int i) |
Modifier and Type | Method and Description |
---|---|
NodeList<Statement> |
NodeWithStatements.getStmts() |
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) |
Modifier and Type | Method and Description |
---|---|
default N |
NodeWithStatements.copyStatements(NodeList<Statement> nodeList) |
N |
NodeWithStatements.setStmts(NodeList<Statement> stmts) |
Modifier and Type | Class and Description |
---|---|
class |
AssertStmt |
class |
BlockStmt |
class |
BreakStmt |
class |
ContinueStmt |
class |
DoStmt |
class |
EmptyStmt |
class |
ExplicitConstructorInvocationStmt |
class |
ExpressionStmt |
class |
ForeachStmt |
class |
ForStmt |
class |
IfStmt |
class |
LabeledStmt |
class |
ReturnStmt |
class |
SwitchEntryStmt |
class |
SwitchStmt |
class |
SynchronizedStmt |
class |
ThrowStmt |
class |
TryStmt |
class |
TypeDeclarationStmt |
class |
WhileStmt |
Modifier and Type | Method and Description |
---|---|
Statement |
DoStmt.getBody() |
Statement |
ForeachStmt.getBody() |
Statement |
WhileStmt.getBody() |
Statement |
ForStmt.getBody() |
Statement |
LabeledStmt.getStmt() |
Statement |
IfStmt.getThenStmt() |
Modifier and Type | Method and Description |
---|---|
Optional<Statement> |
IfStmt.getElseStmt() |
NodeList<Statement> |
BlockStmt.getStmts() |
NodeList<Statement> |
SwitchEntryStmt.getStmts() |
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.setStmt(Statement stmt) |
IfStmt |
IfStmt.setThenStmt(Statement thenStmt) |
Modifier and Type | Method and Description |
---|---|
BlockStmt |
BlockStmt.setStmts(NodeList<Statement> stmts) |
SwitchEntryStmt |
SwitchEntryStmt.setStmts(NodeList<Statement> stmts) |
Constructor and Description |
---|
DoStmt(Range range,
Statement body,
Expression condition) |
DoStmt(Statement body,
Expression condition) |
ForeachStmt(Range range,
VariableDeclarationExpr var,
Expression iterable,
Statement body) |
ForeachStmt(VariableDeclarationExpr var,
Expression iterable,
Statement body) |
ForStmt(NodeList<Expression> init,
Expression compare,
NodeList<Expression> update,
Statement body) |
ForStmt(Range range,
NodeList<Expression> init,
Expression compare,
NodeList<Expression> update,
Statement body) |
IfStmt(Expression condition,
Statement thenStmt,
Statement elseStmt) |
IfStmt(Range range,
Expression condition,
Statement thenStmt,
Statement elseStmt) |
LabeledStmt(Range range,
String label,
Statement stmt) |
LabeledStmt(String label,
Statement stmt) |
WhileStmt(Expression condition,
Statement body) |
WhileStmt(Range range,
Expression condition,
Statement body) |
Constructor and Description |
---|
BlockStmt(NodeList<Statement> stmts) |
BlockStmt(Range range,
NodeList<Statement> stmts) |
SwitchEntryStmt(Expression label,
NodeList<Statement> stmts) |
SwitchEntryStmt(Range range,
Expression label,
NodeList<Statement> stmts) |
Copyright © 2007–2016. All rights reserved.