Top Classes
[default module]

Package com.github.javaparser.ast.stmt


Class Summary

Modifier and TypeClass and Description
public class
AssertStmt

A usage of the keyword "assert" In assert dead : "Wasn't expecting to be dead here"; the check is "dead" and the message is the string.

public class
BlockStmt

Statements in between { and }.

public class
BreakStmt

The break statement Java 1.0-11 Break has an optional label: break; break somewhere; The label is in the "value" property as a NameExpr.

public class
CatchClause

The catch part of a try-catch-finally.

public class
ContinueStmt

A continue statement with an optional label; continue brains; continue;

public class
DoStmt

A do-while.

public class
EmptyStmt

An empty statement is a ";" where a statement is expected.

public class
ExplicitConstructorInvocationStmt

A call to super or this in a constructor or initializer.

public class
ExpressionStmt

Used to wrap an expression so that it can take the place of a statement.

public class
ForEachStmt

A for-each statement.

public class
ForStmt

The classic for statement Examples:

  1. for(int a=3, b=5; a<99; a++, b++) hello();
  2. for(a=3, b=5; a<99; a++) { hello(); }
  3. for(a(),b();;) hello();
public class
IfStmt

An if-then-else statement.

public class
LabeledStmt

A statement that is labeled, like label123: println("continuing");

public class
LocalClassDeclarationStmt

A class declaration inside a method.

public class
ReturnStmt

The return statement, with an optional expression to return.

public abstract class
Statement

A base class for all statements.

public class
SwitchEntry

One case in a switch statement The main Javadoc is in SwitchStmt Java 1.0-11

switch (i) {
  case 1:
  case 2:
    System.out.println(444);
    break;
  default:
    System.out.println(0);
}
public class
SwitchStmt

The switch statement Java 1.0-1.4 The basic C-like switch statement.

public class
SynchronizedStmt

Usage of the synchronized keyword.

public class
ThrowStmt

Usage of the throw statement.

public class
TryStmt

The try statement Java 1.0-6

try {
// ...
public class
UnparsableStmt

A statement that had parse errors.

public class
WhileStmt

A while statement.

public class
YieldStmt

The yield statement Java 1.0-11 Does not exist.