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. STATEMENTMethods in com.github.javaparser that return Statement Modifier and Type Method Description StatementGeneratedJavaParser. BlockStatement()Classes inside body statements can only be abstract or final.StatementGeneratedJavaParser. BlockStatementParseStart()StatementGeneratedJavaParser. ForStatement()https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.14StatementGeneratedJavaParser. LambdaBody()https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.27.2StatementJavaParserAdapter. parseStatement(java.lang.String statement)static StatementStaticJavaParser. parseStatement(java.lang.String statement)Parses the Java statement contained in aStringand returns aStatementthat represents it.StatementGeneratedJavaParser. 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 aStringand returns aStatementthat 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) 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.classLocalRecordDeclarationStmtA record 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. -
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 booleanNormalCompletionVisitor. 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 classStatementContext<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 StatementControlFlowLogic. 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 booleanControlFlowLogic. canCompleteNormally(Statement statement)private java.util.List<TryStmt>ControlFlowLogic. containedTryStmts(Statement statement)private booleanControlFlowLogic. contains(Statement container, Statement contained)booleanControlFlowLogic. isReachable(Statement statement)private booleanControlFlowLogic. 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 booleanExpressionCompatibleWithType. isValueCompatibleBlock(Statement statement)
-