Package | Description |
---|---|
com.github.javaparser | |
com.github.javaparser.ast.expr | |
com.github.javaparser.ast.nodeTypes | |
com.github.javaparser.ast.stmt | |
com.github.javaparser.generator.metamodel |
Modifier and Type | Field | Description |
---|---|---|
static ParseStart<Statement> |
ParseStart.STATEMENT |
Modifier and Type | Method | Description |
---|---|---|
static Statement |
JavaParser.parseStatement(String statement) |
Modifier and Type | Method | Description |
---|---|---|
Statement |
LambdaExpr.getBody() |
Modifier and Type | Method | Description |
---|---|---|
LambdaExpr |
LambdaExpr.setBody(Statement body) |
Constructor | Description |
---|---|
LambdaExpr(NodeList<Parameter> parameters,
Statement body,
boolean isEnclosingParameters) |
|
LambdaExpr(TokenRange tokenRange,
NodeList<Parameter> parameters,
Statement body,
boolean isEnclosingParameters) |
This constructor is used by the parser and is considered private.
|
Modifier and Type | Method | Description |
---|---|---|
default <A extends Statement> |
NodeWithStatements.addAndGetStatement(A statement) |
Modifier and Type | Method | Description |
---|---|---|
default Statement |
NodeWithStatements.addAndGetStatement(int index,
Statement statement) |
|
Statement |
NodeWithBody.getBody() |
|
default Statement |
NodeWithStatements.getStatement(int i) |
Modifier and Type | Method | Description |
---|---|---|
NodeList<Statement> |
NodeWithStatements.getStatements() |
Modifier and Type | Method | 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 | Description |
---|---|---|
default N |
NodeWithStatements.copyStatements(NodeList<Statement> nodeList) |
|
N |
NodeWithStatements.setStatements(NodeList<Statement> statements) |
Modifier and Type | Class | 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 |
An empty statement is a ";" where a statement is expected.
|
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 |
UnparsableStmt |
A statement that had parse errors.
|
class |
WhileStmt |
A while statement.
|
Modifier and Type | Method | Description |
---|---|---|
Statement |
Statement.clone() |
|
Statement |
DoStmt.getBody() |
|
Statement |
ForeachStmt.getBody() |
|
Statement |
ForStmt.getBody() |
|
Statement |
WhileStmt.getBody() |
|
Statement |
LabeledStmt.getStatement() |
|
Statement |
IfStmt.getThenStmt() |
Modifier and Type | Method | Description |
---|---|---|
Optional<Statement> |
IfStmt.getElseStmt() |
|
NodeList<Statement> |
BlockStmt.getStatements() |
|
NodeList<Statement> |
SwitchEntryStmt.getStatements() |
Modifier and Type | Method | Description |
---|---|---|
DoStmt |
DoStmt.setBody(Statement body) |
|
ForeachStmt |
ForeachStmt.setBody(Statement body) |
|
ForStmt |
ForStmt.setBody(Statement body) |
|
WhileStmt |
WhileStmt.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 | Description |
---|---|---|
BlockStmt |
BlockStmt.setStatements(NodeList<Statement> statements) |
|
SwitchEntryStmt |
SwitchEntryStmt.setStatements(NodeList<Statement> statements) |
Constructor | Description |
---|---|
DoStmt(Statement body,
Expression condition) |
|
DoStmt(TokenRange tokenRange,
Statement body,
Expression condition) |
This constructor is used by the parser and is considered private.
|
ForeachStmt(VariableDeclarationExpr variable,
Expression iterable,
Statement body) |
|
ForeachStmt(TokenRange tokenRange,
VariableDeclarationExpr variable,
Expression iterable,
Statement body) |
This constructor is used by the parser and is considered private.
|
ForStmt(NodeList<Expression> initialization,
Expression compare,
NodeList<Expression> update,
Statement body) |
|
ForStmt(TokenRange tokenRange,
NodeList<Expression> initialization,
Expression compare,
NodeList<Expression> update,
Statement body) |
This constructor is used by the parser and is considered private.
|
IfStmt(Expression condition,
Statement thenStmt,
Statement elseStmt) |
|
IfStmt(TokenRange tokenRange,
Expression condition,
Statement thenStmt,
Statement elseStmt) |
This constructor is used by the parser and is considered private.
|
LabeledStmt(SimpleName label,
Statement statement) |
|
LabeledStmt(TokenRange tokenRange,
SimpleName label,
Statement statement) |
This constructor is used by the parser and is considered private.
|
LabeledStmt(String label,
Statement statement) |
|
WhileStmt(Expression condition,
Statement body) |
|
WhileStmt(TokenRange tokenRange,
Expression condition,
Statement body) |
This constructor is used by the parser and is considered private.
|
Constructor | Description |
---|---|
BlockStmt(NodeList<Statement> statements) |
|
BlockStmt(TokenRange tokenRange,
NodeList<Statement> statements) |
This constructor is used by the parser and is considered private.
|
SwitchEntryStmt(Expression label,
NodeList<Statement> statements) |
|
SwitchEntryStmt(TokenRange tokenRange,
Expression label,
NodeList<Statement> statements) |
This constructor is used by the parser and is considered private.
|
Modifier and Type | Method | Description |
---|---|---|
void |
InitializeConstructorParametersStatementsGenerator.generate(Class<? extends Node> nodeClass,
NodeList<Statement> initializeConstructorParametersStatements) |
|
void |
InitializePropertyMetaModelsStatementsGenerator.generate(Class<?> nodeClass,
Field field,
ClassOrInterfaceDeclaration nodeMetaModelClass,
String nodeMetaModelFieldName,
NodeList<Statement> initializePropertyMetaModelsStatements) |
|
void |
NodeMetaModelGenerator.generate(Class<? extends Node> nodeClass,
ClassOrInterfaceDeclaration metaModelCoid,
NodeList<Statement> initializeNodeMetaModelsStatements,
NodeList<Statement> initializePropertyMetaModelsStatements,
NodeList<Statement> initializeConstructorParametersStatements,
SourceRoot sourceRoot) |
|
void |
InitializePropertyMetaModelsStatementsGenerator.generateDerivedProperty(Method method,
ClassOrInterfaceDeclaration nodeMetaModelClass,
String nodeMetaModelFieldName,
NodeList<Statement> initializePropertyMetaModelsStatements) |
Copyright © 2007–2019. All rights reserved.