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 StatementGeneratedJavaParser.BlockStatement()Classes inside body statements can only be abstract or final.final StatementGeneratedJavaParser.BlockStatementParseStart()final StatementGeneratedJavaParser.ForStatement()https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.14final StatementGeneratedJavaParser.LambdaBody()https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.27.2JavaParserAdapter.parseStatement(String statement) static StatementStaticJavaParser.parseStatement(String statement) final 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 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) 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 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 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 statementFields in com.github.javaparser.ast.stmt declared as StatementModifier and TypeFieldDescriptionprivate 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 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 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 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 TypeMethodDescriptionbooleanControlFlowLogic.canCompleteNormally(Statement statement) ControlFlowLogic.containedTryStmts(Statement statement) private booleanbooleanControlFlowLogic.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 StatementModifier and TypeMethodDescriptionprivate booleanExpressionCompatibleWithType.isValueCompatibleBlock(Statement statement)