CodeQL library for Java
codeql/java-all 0.3.3 (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()