Package com.tonic.analysis.source.ast.stmt
Statement nodes.
-
Interface Summary Interface Description Statement Sealed interface representing all statement types in the source AST. -
Class Summary Class Description BlockStmt A brace-delimited sequence of statements.BreakStmt A break statement with an optional target label.CatchClause A catch clause of a try statement, supporting multi-catch via multiple exception types.ContinueStmt A continue statement with an optional target label.DoWhileStmt A do-while loop with an optional label; the body executes before the condition is tested.ExprStmt An expression used as a statement, such as a call, assignment, or increment.ForEachStmt An enhanced for loop over an iterable or array, with an optional label.ForStmt A basic for loop with init statements, an optional condition, and update expressions.IfStmt An if statement with an optional else branch.IRRegionStmt A fallback statement preserving raw IR blocks of an irreducible region, emitted as labeled blocks with breaks.LabeledStmt A statement prefixed with a label, the target of labeled breaks and continues.ReturnStmt A return statement with an optional value expression.SwitchCase A case clause of a switch statement, keyed by integer labels or expression labels.SwitchStmt A switch statement over a selector expression and a list of cases.SynchronizedStmt A synchronized block guarding its body with a lock expression.ThrowStmt A throw statement, owning the thrown expression as its only child.TryCatchStmt Represents a try-catch statement with optional finally block and resources (try-with-resources).VarDeclStmt Represents a local variable declaration: Type name [= initializer] Also supports Java 10+ var keyword.WhileStmt A while loop with an optional label.