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 StatementStaticJavaParser.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 StatementNodeWithStatements.addAndGetStatement(int index, Statement statement)NodeWithBody.getBody()default StatementNodeWithStatements.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 StatementNodeWithStatements.addAndGetStatement(int index, Statement statement)default NNodeWithStatements.addStatement(int index, Statement statement)default NNodeWithStatements.addStatement(Statement statement)default NNodeWithStatements.setStatement(int i, Statement statement)Method parameters in com.github.javaparser.ast.nodeTypes with type arguments of type StatementModifier and TypeMethodDescriptiondefault NNodeWithStatements.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 TypeClassDescriptionclassA usage of the keyword "assert"
Inassert dead : "Wasn't expecting to be dead here";the check is "dead" and the message is the string.classStatements in between { and }.classThe break statementclassA continue statement with an optional label;continue brains;continue;classA do-while.classAn empty statement is a ";" where a statement is expected.classA call to super or this in a constructor or initializer.classUsed to wrap an expression so that it can take the place of a statement.classA for-each statement.classThe classic for statementclassAn if-then-else statement.classA statement that is labeled, likelabel123: println("continuing");classA class declaration inside a method.classA record declaration inside a method.classThe return statement, with an optional expression to return.classThe switch statementclassUsage of the synchronized keyword.classUsage of the throw statement.classThe try statementclassA statement that had parse errors.classA while statement.classThe 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