Uses of Class
com.github.javaparser.ast.stmt.Statement
-
-
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
GeneratedJavaParser. BlockStatement()
Classes inside body statements can only be abstract or final.Statement
GeneratedJavaParser. BlockStatementParseStart()
Statement
GeneratedJavaParser. ForStatement()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.14Statement
GeneratedJavaParser. LambdaBody()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.27.2Statement
JavaParserAdapter. parseStatement(java.lang.String statement)
static Statement
StaticJavaParser. parseStatement(java.lang.String statement)
Parses the Java statement contained in aString
and returns aStatement
that represents it.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 Statement Modifier and Type Method Description ParseResult<Statement>
JavaParser. parseStatement(java.lang.String statement)
Parses the Java statement contained in aString
and returns aStatement
that represents it.NodeList<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 Statement Modifier and Type Method Description (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 Statement Modifier and Type Field Description private Statement
LambdaExpr. body
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 statementFields in com.github.javaparser.ast.stmt declared as Statement Modifier and Type Field Description private 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 Statement Modifier and Type Field Description private NodeList<Statement>
BlockStmt. statements
private NodeList<Statement>
SwitchEntry. statements
Methods 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 java.util.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(java.lang.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. -
Uses of Statement in com.github.javaparser.symbolsolver.javaparsermodel
Methods in com.github.javaparser.symbolsolver.javaparsermodel with parameters of type Statement Modifier and Type Method Description static 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 Statement Modifier and Type Class Description class
StatementContext<N extends Statement>
Methods in com.github.javaparser.symbolsolver.javaparsermodel.contexts with parameters of type Statement Modifier and Type Method Description private java.util.List<VariableDeclarator>
BlockStmtContext. localVariablesDeclaredIn(Statement statement)
static SymbolReference<? extends ResolvedValueDeclaration>
StatementContext. solveInBlock(java.lang.String name, TypeSolver typeSolver, Statement stmt)
static java.util.Optional<Value>
StatementContext. solveInBlockAsValue(java.lang.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 Statement Modifier and Type Method Description Statement
ControlFlowLogic. 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 Statement Modifier and Type Method Description boolean
ControlFlowLogic. canCompleteNormally(Statement statement)
private java.util.List<TryStmt>
ControlFlowLogic. containedTryStmts(Statement statement)
private boolean
ControlFlowLogic. contains(Statement container, Statement contained)
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 Statement Modifier and Type Method Description private boolean
ExpressionCompatibleWithType. isValueCompatibleBlock(Statement statement)
-