Module Statement

Provides classes and predicates for working with Java statements.

Import path

semmle.code.java.Statement

Imports

Expr

Provides classes for working with Java expressions.

MetricStmt

Provides classes and predicates for computing metrics on Java statements.

Classes

AssertStmt

An assert statement.

Block

A block of statements.

BreakStmt

A break statement.

CatchClause

A catch clause in a try statement.

ConditionalStmt

A conditional statement, including if, for, while and dowhile statements.

ConstCase

A constant case of a switch statement.

ContinueStmt

A continue statement.

DefaultCase

A default case of a switch statement

DoStmt

A do loop.

EmptyStmt

The empty statement.

EnhancedForStmt

An enhanced for loop. (Introduced in Java 5.)

ExprStmt

An expression statement.

ForStmt

A for loop.

IfStmt

An if statement.

JumpStmt

A break or continue statement.

LabeledStmt

A labeled statement.

LocalClassDeclStmt

A statement that declares a local class.

LocalVariableDeclStmt

A statement that declares one or more local variables.

LoopStmt

A loop statement, including for, enhanced for, while and do statements.

ReturnStmt

A return statement.

SingletonBlock

A block with only a single statement.

Stmt

A common super-class of all statements.

StmtParent

A statement parent is any element that can have a statement as its child.

SuperConstructorInvocationStmt

An explicit super(...) constructor invocation.

SwitchCase

A case of a switch statement.

SwitchStmt

A switch statement.

SynchronizedStmt

A synchronized statement.

ThisConstructorInvocationStmt

An explicit this(...) constructor invocation.

ThrowStmt

A throw statement.

TryStmt

A try statement.

WhileStmt

A while loop.