Uses of Class
com.github.javaparser.ast.stmt.Statement
Packages that use Statement
Package
Description
Implementation of model based on JavaParser.
-
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 TypeMethodDescriptionfinal Statement
GeneratedJavaParser.BlockStatement()
Classes inside body statements can only be abstract or final.final Statement
GeneratedJavaParser.BlockStatementParseStart()
final Statement
GeneratedJavaParser.ForStatement()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.14final Statement
GeneratedJavaParser.LambdaBody()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.27.2JavaParserAdapter.parseStatement
(String statement) static Statement
StaticJavaParser.parseStatement
(String statement) final Statement
GeneratedJavaParser.Statement()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.5Methods in com.github.javaparser that return types with arguments of type StatementModifier and TypeMethodDescriptionJavaParser.parseStatement
(String statement) GeneratedJavaParser.Statements()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.5Methods in com.github.javaparser with parameters of type StatementModifier and TypeMethodDescription(package private) Expression
GeneratedJavaParserBase.generateLambda
(Expression ret, Statement lambdaBody) Workaround for rather complex ambiguity that lambda's create -
Uses of Statement in com.github.javaparser.ast.expr
Fields in com.github.javaparser.ast.expr declared as StatementMethods 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 statementFields in com.github.javaparser.ast.stmt declared as StatementModifier and TypeFieldDescriptionprivate Statement
DoStmt.body
private Statement
ForEachStmt.body
private Statement
ForStmt.body
private Statement
WhileStmt.body
private Statement
IfStmt.elseStmt
private Statement
LabeledStmt.statement
private Statement
IfStmt.thenStmt
Fields in com.github.javaparser.ast.stmt with type parameters of type 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 -
Uses of Statement in com.github.javaparser.symbolsolver.javaparsermodel
Methods in com.github.javaparser.symbolsolver.javaparsermodel with parameters of type StatementModifier and TypeMethodDescriptionstatic boolean
NormalCompletionVisitor.containsCorrespondingBreak
(Statement statement) -
Uses of Statement in com.github.javaparser.symbolsolver.javaparsermodel.contexts
Classes in com.github.javaparser.symbolsolver.javaparsermodel.contexts with type parameters of type StatementMethods in com.github.javaparser.symbolsolver.javaparsermodel.contexts with parameters of type StatementModifier and TypeMethodDescriptionprivate List
<VariableDeclarator> BlockStmtContext.localVariablesDeclaredIn
(Statement statement) static SymbolReference
<? extends ResolvedValueDeclaration> StatementContext.solveInBlock
(String name, TypeSolver typeSolver, Statement stmt) StatementContext.solveInBlockAsValue
(String name, TypeSolver typeSolver, Statement stmt) -
Uses of Statement in com.github.javaparser.symbolsolver.resolution.typeinference
Methods in com.github.javaparser.symbolsolver.resolution.typeinference that return StatementModifier and TypeMethodDescriptionControlFlowLogic.breakTarget
(BreakStmt breakStmt) A break statement with no label attempts to transfer control to the innermost enclosing switch, while, do, or for statement of the immediately enclosing method or initializer; this statement, which is called the break target, then immediately completes normally.Methods in com.github.javaparser.symbolsolver.resolution.typeinference with parameters of type StatementModifier and TypeMethodDescriptionboolean
ControlFlowLogic.canCompleteNormally
(Statement statement) ControlFlowLogic.containedTryStmts
(Statement statement) private boolean
boolean
ControlFlowLogic.isReachable
(Statement statement) private boolean
ControlFlowLogic.isReachableBecauseOfPosition
(Statement statement) -
Uses of Statement in com.github.javaparser.symbolsolver.resolution.typeinference.constraintformulas
Methods in com.github.javaparser.symbolsolver.resolution.typeinference.constraintformulas with parameters of type StatementModifier and TypeMethodDescriptionprivate boolean
ExpressionCompatibleWithType.isValueCompatibleBlock
(Statement statement)