Uses of Class
com.github.javaparser.ast.stmt.Statement
Packages that use Statement
Package
Description
-
Uses of Statement in com.github.javaparser
Fields in com.github.javaparser with type parameters of type StatementMethods in com.github.javaparser that return StatementModifier and TypeMethodDescriptionstatic Statement
StaticJavaParser.parseStatement(String statement)
Methods in com.github.javaparser that return types with arguments of type Statement -
Uses of Statement in com.github.javaparser.ast.expr
Methods in com.github.javaparser.ast.expr that return StatementMethods in com.github.javaparser.ast.expr with parameters of type StatementConstructors in com.github.javaparser.ast.expr with parameters of type StatementModifierConstructorDescriptionLambdaExpr(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 StatementModifier and TypeMethodDescriptiondefault <A extends Statement>
ANodeWithStatements.addAndGetStatement(A statement)
Methods in com.github.javaparser.ast.nodeTypes that return StatementModifier and TypeMethodDescriptiondefault Statement
NodeWithStatements.addAndGetStatement(int index, Statement statement)
NodeWithBody.getBody()
default Statement
NodeWithStatements.getStatement(int i)
Methods in com.github.javaparser.ast.nodeTypes that return types with arguments of type StatementMethods in com.github.javaparser.ast.nodeTypes with parameters of type StatementModifier and TypeMethodDescriptiondefault Statement
NodeWithStatements.addAndGetStatement(int index, Statement statement)
default N
NodeWithStatements.addStatement(int index, Statement statement)
default N
NodeWithStatements.addStatement(Statement statement)
default N
NodeWithStatements.setStatement(int i, Statement statement)
Method parameters in com.github.javaparser.ast.nodeTypes with type arguments of type StatementModifier and TypeMethodDescriptiondefault N
NodeWithStatements.copyStatements(NodeList<Statement> nodeList)
NodeWithStatements.setStatements(NodeList<Statement> statements)
-
Uses of Statement in com.github.javaparser.ast.stmt
Subclasses of Statement in com.github.javaparser.ast.stmtModifier and TypeClassDescriptionclass
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
Statements in between { and }.class
The break statementclass
A continue statement with an optional label;continue brains;
continue;
class
A do-while.class
An empty statement is a ";" where a statement is expected.class
A call to super or this in a constructor or initializer.class
Used to wrap an expression so that it can take the place of a statement.class
A for-each statement.class
The classic for statementclass
An if-then-else statement.class
A statement that is labeled, likelabel123: println("continuing");
class
A class declaration inside a method.class
A record declaration inside a method.class
The return statement, with an optional expression to return.class
The switch statementclass
Usage of the synchronized keyword.class
Usage of the throw statement.class
The try statementclass
A statement that had parse errors.class
A while statement.class
The yield statementMethods in com.github.javaparser.ast.stmt that return StatementModifier and TypeMethodDescriptionStatement.clone()
DoStmt.getBody()
ForEachStmt.getBody()
ForStmt.getBody()
WhileStmt.getBody()
LabeledStmt.getStatement()
IfStmt.getThenStmt()
Methods in com.github.javaparser.ast.stmt that return types with arguments of type StatementModifier and TypeMethodDescriptionIfStmt.getElseStmt()
BlockStmt.getStatements()
SwitchEntry.getStatements()
Methods in com.github.javaparser.ast.stmt with parameters of type StatementModifier and TypeMethodDescriptionIfStmt.setElseStmt(Statement elseStmt)
Sets the elseStmtLabeledStmt.setStatement(Statement statement)
IfStmt.setThenStmt(Statement thenStmt)
Method parameters in com.github.javaparser.ast.stmt with type arguments of type StatementModifier and TypeMethodDescriptionBlockStmt.setStatements(NodeList<Statement> statements)
SwitchEntry.setStatements(NodeList<Statement> statements)
Constructors in com.github.javaparser.ast.stmt with parameters of type StatementModifierConstructorDescriptionDoStmt(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