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

Module DependencyCounts

This library provides utility predicates for representing the number of dependencies between types.

Import path

import semmle.code.java.DependencyCounts

Imports

Expr

Provides classes for working with Java expressions.

Generics

Provides classes and predicates for working with generic types.

Type

Provides classes and predicates for working with Java types.

Predicates

fileJarDependencyCount
filePackageDependencyCount
hasDashedVersion

Given a JAR filename, try to split it into a name and version. This is a heuristic approach assuming that the a dash is used to separate the library name from a largely numeric version such as commons-io-2.4.

numDepends

The number of dependencies from type t on type dep.