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

Module Annotation

Provides classes and predicates for working with Java annotations.

Annotations are used to add meta-information to language elements in a uniform fashion. They can be seen as typed modifiers that can take parameters.

Each annotation type has zero or more annotation elements that contain a name and possibly a value.

Import path

import semmle.code.java.Annotation

Imports

Element

Provides a class that represents named elements in Java programs.

Expr

Provides classes for working with Java expressions.

JDKAnnotations

Provides classes that represent standard annotations from the JDK.

Member

Provides classes and predicates for working with members of Java classes and interfaces, that is, methods, constructors, fields and nested types.

Type

Provides classes and predicates for working with Java types.

Classes

Annotatable

An abstract representation of language elements that can be annotated.

Annotation

Any annotation used to annotate language elements with meta-information.

AnnotationElement

An annotation element is a member declared in an annotation type.

AnnotationType

An annotation type is a special kind of interface type declaration.

DeclAnnotation

An Annotation that applies to a declaration.

TypeAnnotation

An Annotation that applies to a type.