CodeQL library for Java/Kotlin
codeql/java-all 0.10.0 (changelog, source)
Search

Module Statement

Provides classes and predicates for working with Java statements.

Import path

import 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.

BlockStmt

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 or case null, default case of a switch statement or expression.

DoStmt

A do loop.

EmptyStmt

The empty statement.

EnhancedForStmt

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

ErrorStmt

An error statement.

ExprStmt

An expression statement.

ForStmt

A for loop.

IfStmt

An if statement.

JumpStmt

A break, yield or continue statement.

LabeledStmt

A labeled statement.

LocalTypeDeclStmt

A statement that declares a local class or interface.

LocalVariableDeclStmt

A statement that declares one or more local variables.

LoopStmt

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

NullDefaultCase

A case null, default statement of a switch statement or expression.

PatternCase

A pattern case of a switch statement

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.

SwitchBlock

A switch statement or expression.

SwitchCase

A case of a switch statement or expression.

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.

YieldStmt

A yield statement.