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

Member predicate Field::getSourceDeclaration

Gets the source declaration of this field.

For fields that are members of a parameterized instance of a generic type, the source declaration is the corresponding field in the generic type.

For all other fields, the source declaration is the field itself.

Field getSourceDeclaration()