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

Member predicate PersistentEntity::getAccessType

Gets the access type for this entity.

The access type is either FIELD or METHOD. In the former case, persistence is achieved by reading and writing the fields directly. In the latter case, setters and getters are used instead.

string getAccessType()