Package | Description |
---|---|
com.github.javaparser | |
com.github.javaparser.ast.expr | |
com.github.javaparser.ast.stmt |
Modifier and Type | Method and Description |
---|---|
static Statement |
JavaParser.parseStatement(String statement)
|
Modifier and Type | Method and Description |
---|---|
static void |
ASTHelper.addStmt(BlockStmt block,
Statement stmt)
Adds the given statement to the specified block.
|
Modifier and Type | Method and Description |
---|---|
Statement |
LambdaExpr.getBody() |
Modifier and Type | Method and Description |
---|---|
void |
LambdaExpr.setBody(Statement body) |
Constructor and Description |
---|
LambdaExpr(int beginLine,
int beginColumn,
int endLine,
int endColumn,
List<Parameter> parameters,
Statement body,
boolean parametersEnclosed) |
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 |
IfStmt.getElseStmt() |
Statement |
LabeledStmt.getStmt() |
Statement |
IfStmt.getThenStmt() |
Modifier and Type | Method and Description |
---|---|
List<Statement> |
BlockStmt.getStmts() |
List<Statement> |
SwitchEntryStmt.getStmts() |
Modifier and Type | Method and Description |
---|---|
void |
DoStmt.setBody(Statement body) |
void |
ForeachStmt.setBody(Statement body) |
void |
WhileStmt.setBody(Statement body) |
void |
ForStmt.setBody(Statement body) |
void |
IfStmt.setElseStmt(Statement elseStmt) |
void |
LabeledStmt.setStmt(Statement stmt) |
void |
IfStmt.setThenStmt(Statement thenStmt) |
Modifier and Type | Method and Description |
---|---|
void |
BlockStmt.setStmts(List<Statement> stmts) |
void |
SwitchEntryStmt.setStmts(List<Statement> stmts) |
Constructor and Description |
---|
DoStmt(int beginLine,
int beginColumn,
int endLine,
int endColumn,
Statement body,
Expression condition) |
DoStmt(Statement body,
Expression condition) |
ForeachStmt(int beginLine,
int beginColumn,
int endLine,
int endColumn,
VariableDeclarationExpr var,
Expression iterable,
Statement body) |
ForeachStmt(VariableDeclarationExpr var,
Expression iterable,
Statement body) |
ForStmt(int beginLine,
int beginColumn,
int endLine,
int endColumn,
List<Expression> init,
Expression compare,
List<Expression> update,
Statement body) |
ForStmt(List<Expression> init,
Expression compare,
List<Expression> update,
Statement body) |
IfStmt(Expression condition,
Statement thenStmt,
Statement elseStmt) |
IfStmt(int beginLine,
int beginColumn,
int endLine,
int endColumn,
Expression condition,
Statement thenStmt,
Statement elseStmt) |
LabeledStmt(int beginLine,
int beginColumn,
int endLine,
int endColumn,
String label,
Statement stmt) |
LabeledStmt(String label,
Statement stmt) |
WhileStmt(Expression condition,
Statement body) |
WhileStmt(int beginLine,
int beginColumn,
int endLine,
int endColumn,
Expression condition,
Statement body) |
Constructor and Description |
---|
BlockStmt(int beginLine,
int beginColumn,
int endLine,
int endColumn,
List<Statement> stmts) |
BlockStmt(List<Statement> stmts) |
SwitchEntryStmt(Expression label,
List<Statement> stmts) |
SwitchEntryStmt(int beginLine,
int beginColumn,
int endLine,
int endColumn,
Expression label,
List<Statement> stmts) |
Copyright © 2007–2016. All rights reserved.