Expand description
Statement types.
Structs§
- Assert
Stmt - An assert statement.
- Block
- A block:
{ stmt1; stmt2; ... }. - Catch
Clause - A catch clause.
- Catch
Param - The parameter of a catch clause.
- Catch
Type - The type in a catch parameter (can be a union type with
|). - DoWhile
Stmt - A do-while statement.
- Enhanced
ForStmt - An enhanced for statement:
for (Type var : iterable) body. - Expr
Stmt - An expression statement:
expr;. - ForStmt
- A for statement:
for (init; cond; update) body. - IfStmt
- An if statement.
- Jump
Stmt - A break or continue statement.
- Labeled
Stmt - A labeled statement:
label: stmt. - Local
VarDecl Stmt - A local variable declaration statement:
int x = 5, y = 10;. - Return
Stmt - A return statement.
- Switch
Case Group - A group of case labels and statements in a switch statement (colon-style).
- Switch
Stmt - A switch statement.
- Synchronized
Stmt - A synchronized statement.
- Throw
Stmt - A throw statement.
- Variable
Declarator - A variable declarator:
name [= initializer]. - While
Stmt - A while statement.
- Yield
Stmt - A yield statement (in switch expressions).
Enums§
- ForInit
- The initialization part of a for statement.
- Local
VarType - The type of a local variable declaration.
- Stmt
- A Java statement.
- TryResource
- A resource in a try-with-resources statement.
- TryStmt
- A try statement.