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

Class TypeBound

A type bound on a type variable.

For example, Number is a type bound on the type variable T in class X<T extends Number> { }.

Type variables can have multiple type bounds, specified by an intersection type T0 & T1 & ... & Tn. A bound with position 0 is an interface type or class type (possibly Object) and a bound with a non-zero position is an interface type.

Import path

import java

Direct supertypes

Predicates

getBoundedType

Gets the type variable that is bounded by this type bound.

getPosition

Gets the (zero-indexed) position of this bound.

getType

Gets the type of this bound.

toString

Gets a textual representation of this type bound.