Skip to content

Index

Query structure

The query structure is simple, easy to use and inspired by SQL. Query often start with the keyword FIND followed by the entity type and then the condition.

FROM entity_type AS entity_variable
WHERE condition
SELECT entity_variable, "Description"

Example

FROM method_declaration AS md
WHERE "@Deprecated" in md.getAnnotation()
SELECT md, "Listing all deprecated methods"

Alias syntax

The alias syntax is used to give a name to the entity. This is useful when the entity is used multiple times in the query. It’s mandatory to use the alias to invoke the entity methods.

FROM method_declaration AS md
WHERE md.<Entity method>
SELECT md.<Entity Data>, "Example description"

Learn more about the entity methods below in the API Index.

API Index