Uses of Class
com.github.javaparser.ast.stmt.Statement
-
Packages that use Statement Package Description com.github.javaparser com.github.javaparser.ast.expr com.github.javaparser.ast.nodeTypes com.github.javaparser.ast.stmt -
-
Uses of Statement in com.github.javaparser
Fields in com.github.javaparser with type parameters of type Statement Modifier and Type Field Description static ParseStart<Statement>
ParseStart. STATEMENT
Methods in com.github.javaparser that return Statement Modifier and Type Method Description Statement
JavaParserAdapter. parseStatement(String statement)
static Statement
StaticJavaParser. parseStatement(String statement)
Methods in com.github.javaparser that return types with arguments of type Statement Modifier and Type Method Description ParseResult<Statement>
JavaParser. parseStatement(String statement)
-
Uses of Statement in com.github.javaparser.ast.expr
Methods in com.github.javaparser.ast.expr that return Statement Modifier and Type Method Description Statement
LambdaExpr. getBody()
Methods in com.github.javaparser.ast.expr with parameters of type Statement Modifier and Type Method Description LambdaExpr
LambdaExpr. setBody(Statement body)
Constructors in com.github.javaparser.ast.expr with parameters of type Statement 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. -
Uses of Statement in com.github.javaparser.ast.nodeTypes
Methods in com.github.javaparser.ast.nodeTypes with type parameters of type Statement Modifier and Type Method Description default <A extends Statement>
ANodeWithStatements. addAndGetStatement(A statement)
Methods in com.github.javaparser.ast.nodeTypes that return Statement Modifier and Type Method Description default Statement
NodeWithStatements. addAndGetStatement(int index, Statement statement)
Statement
NodeWithBody. getBody()
default Statement
NodeWithStatements. getStatement(int i)
Methods in com.github.javaparser.ast.nodeTypes that return types with arguments of type Statement Modifier and Type Method Description NodeList<Statement>
NodeWithStatements. getStatements()
Methods in com.github.javaparser.ast.nodeTypes with parameters of type Statement 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)
Method parameters in com.github.javaparser.ast.nodeTypes with type arguments of type Statement Modifier and Type Method Description default N
NodeWithStatements. copyStatements(NodeList<Statement> nodeList)
N
NodeWithStatements. setStatements(NodeList<Statement> statements)
-
Uses of Statement in com.github.javaparser.ast.stmt
Subclasses of Statement in com.github.javaparser.ast.stmt Modifier and Type Class Description class
AssertStmt
A usage of the keyword "assert"
Inassert 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
The break statementclass
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
The classic for statementclass
IfStmt
An if-then-else statement.class
LabeledStmt
A statement that is labeled, likelabel123: println("continuing");
class
LocalClassDeclarationStmt
A class declaration inside a method.class
LocalRecordDeclarationStmt
A record declaration inside a method.class
ReturnStmt
The return statement, with an optional expression to return.class
SwitchStmt
The switch statementclass
SynchronizedStmt
Usage of the synchronized keyword.class
ThrowStmt
Usage of the throw statement.class
TryStmt
The try statementclass
UnparsableStmt
A statement that had parse errors.class
WhileStmt
A while statement.class
YieldStmt
The yield statementMethods in com.github.javaparser.ast.stmt that return 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()
Methods in com.github.javaparser.ast.stmt that return types with arguments of type Statement Modifier and Type Method Description Optional<Statement>
IfStmt. getElseStmt()
NodeList<Statement>
BlockStmt. getStatements()
NodeList<Statement>
SwitchEntry. getStatements()
Methods in com.github.javaparser.ast.stmt with parameters of type Statement 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 elseStmtLabeledStmt
LabeledStmt. setStatement(Statement statement)
IfStmt
IfStmt. setThenStmt(Statement thenStmt)
Method parameters in com.github.javaparser.ast.stmt with type arguments of type Statement Modifier and Type Method Description BlockStmt
BlockStmt. setStatements(NodeList<Statement> statements)
SwitchEntry
SwitchEntry. setStatements(NodeList<Statement> statements)
Constructors in com.github.javaparser.ast.stmt with parameters of type Statement 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 parameters in com.github.javaparser.ast.stmt with type arguments of type Statement Constructor Description BlockStmt(NodeList<Statement> statements)
BlockStmt(TokenRange tokenRange, NodeList<Statement> statements)
This constructor is used by the parser and is considered private.
-