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. STATEMENTMethods in com.github.javaparser that return Statement Modifier and Type Method Description StatementGeneratedJavaParser. BlockStatement()StatementGeneratedJavaParser. BlockStatementParseStart()StatementGeneratedJavaParser. ForStatement()StatementGeneratedJavaParser. LambdaBody()static StatementStaticJavaParser. parseStatement(java.lang.String statement)Parses the Java statement contained in aStringand returns aStatementthat represents it.StatementGeneratedJavaParser. Statement()Methods 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 aStringand returns aStatementthat represents it.NodeList<Statement>GeneratedJavaParser. Statements()Methods in com.github.javaparser with parameters of type Statement Modifier and Type Method Description (package private) ExpressionGeneratedJavaParserBase. 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 StatementLambdaExpr. bodyMethods in com.github.javaparser.ast.expr that return Statement Modifier and Type Method Description StatementLambdaExpr. getBody()Methods in com.github.javaparser.ast.expr with parameters of type Statement Modifier and Type Method Description LambdaExprLambdaExpr. 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 StatementNodeWithStatements. addAndGetStatement(int index, Statement statement)StatementNodeWithBody. getBody()default StatementNodeWithStatements. 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 StatementNodeWithStatements. addAndGetStatement(int index, Statement statement)default NNodeWithStatements. addStatement(int index, Statement statement)default NNodeWithStatements. addStatement(Statement statement)NNodeWithBody. setBody(Statement body)default NNodeWithStatements. 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 NNodeWithStatements. copyStatements(NodeList<Statement> nodeList)NNodeWithStatements. 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 classAssertStmtA usage of the keyword "assert"
Inassert dead : "Wasn't expecting to be dead here";the check is "dead" and the message is the string.classBlockStmtStatements in between { and }.classBreakStmtThe break statementclassContinueStmtA continue statement with an optional label;continue brains;continue;classDoStmtA do-while.classEmptyStmtAn empty statement is a ";" where a statement is expected.classExplicitConstructorInvocationStmtA call to super or this in a constructor or initializer.classExpressionStmtUsed to wrap an expression so that it can take the place of a statement.classForEachStmtA for-each statement.classForStmtThe classic for statementclassIfStmtAn if-then-else statement.classLabeledStmtA statement that is labeled, likelabel123: println("continuing");classLocalClassDeclarationStmtA class declaration inside a method.classReturnStmtThe return statement, with an optional expression to return.classSwitchStmtThe switch statementclassSynchronizedStmtUsage of the synchronized keyword.classThrowStmtUsage of the throw statement.classTryStmtThe try statementclassUnparsableStmtA statement that had parse errors.classWhileStmtA while statement.classYieldStmtThe yield statementFields in com.github.javaparser.ast.stmt declared as Statement Modifier and Type Field Description private StatementDoStmt. bodyprivate StatementForEachStmt. bodyprivate StatementForStmt. bodyprivate StatementWhileStmt. bodyprivate StatementIfStmt. elseStmtprivate StatementLabeledStmt. statementprivate StatementIfStmt. thenStmtFields in com.github.javaparser.ast.stmt with type parameters of type Statement Modifier and Type Field Description private NodeList<Statement>BlockStmt. statementsprivate NodeList<Statement>SwitchEntry. statementsMethods in com.github.javaparser.ast.stmt that return Statement Modifier and Type Method Description StatementStatement. clone()StatementDoStmt. getBody()StatementForEachStmt. getBody()StatementForStmt. getBody()StatementWhileStmt. getBody()StatementLabeledStmt. getStatement()StatementIfStmt. 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 DoStmtDoStmt. setBody(Statement body)ForEachStmtForEachStmt. setBody(Statement body)ForStmtForStmt. setBody(Statement body)WhileStmtWhileStmt. setBody(Statement body)IfStmtIfStmt. setElseStmt(Statement elseStmt)Sets the elseStmtLabeledStmtLabeledStmt. setStatement(Statement statement)IfStmtIfStmt. setThenStmt(Statement thenStmt)Method parameters in com.github.javaparser.ast.stmt with type arguments of type Statement Modifier and Type Method Description BlockStmtBlockStmt. setStatements(NodeList<Statement> statements)SwitchEntrySwitchEntry. 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.
-