Language record
Groovy
Groovy is read as the JVM language it compiles to: classes, traits, enums and records all get symbols, their `extends`, `implements` and override edges resolve, and a declared type on a field, a parameter or a `throws` clause becomes a reference — so a build script and the services it names live in one graph.
The registry row this page is generated from
Read at render time from the same family row the register reads, so nothing in this block can disagree with it.
- Extensions
- .groovy, .gradle
- Registry names
groovy- Recorded symbols
- classes · interfaces · methods
Relationship types this analyzer constructs
11 of 14 constructed, read from this analyzer's source and re-derived by the languages gate. Each row below is one of the engine's types, in the engine's own order.
| Relationship type | Constructed |
|---|---|
calls | constructed by this analyzer |
extends | constructed by this analyzer |
implements | constructed by this analyzer |
uses | constructed by this analyzer |
imports | constructed by this analyzer |
exports | constructed by this analyzer |
contains | constructed by this analyzer |
references | constructed by this analyzer |
overrides | constructed by this analyzer |
instantiates | constructed by this analyzer |
decorates | constructed by this analyzer |
renders | ruled absent |
mixes_in | ruled absent |
part_of | ruled absent |
11 constructed, 3 not constructed. All 3 absent types are recorded as ruled absent: the written reason and the corpus measurement behind each are in this family's completeness record. The register explains what each label means.
What this analyzer does not resolve
- A trait is published as an interface, not as a trait.
trait Auditable { … }andinterface Auditable { … }produce the same symbol kind here, so anything that has to tell them apart has to read the source rather than the index — a deliberate reading of the language rather than an omission. - An import is a reference, and no package symbol is published for it.
import com.acme.Billingrecords a reference edge to the full module path at confidence 0.9, so Groovy has no namespace node in the graph and a package's own members cannot be reached by walking into it. - Only fully-qualified names become declared-type references. Fields, parameters, locals,
throws,instanceof, casts and return types all publish, and an unqualified type name is refused, because every row of the lane's hand-audited truth set is qualified — a bareNameis a name this file does not spell out. And no synthetic members are recorded: a property's generated getter and setter, the implicitlogfield and a closure'sitare absent because the source does not write them.
Every line above was written against Groovy’s own analyzer module and is named against a construct in it, so it can be checked against the source. Nothing here is inherited from a template, or from another language’s page.
Where you meet it in a repository
Recognised by extension — .groovy, .gradle. Everything below is about where those files actually sit in a working repository.
- A Jenkinsfile is a
.groovyfile and indexes as one, as does abuildSrc/helper written in Groovy — so delivery logic sits in the same graph as the classes it names. Gradle build logic is mostly.gradlerather than.groovy, so the build script itself is not in this family's file set. - Spock specifications write their test names as strings (
def "addition works"() { … }), and those are recorded as methods on the specification class, so a spec is queryable as a set of test methods. - An anonymous inner class has no spelling, so its body is filed under a synthesized name of the form
anonymous_<Supertype>carryingsynthesized: true. That name exists so the members have an owner; it is not a declaration in your source and should not be read as one.
Questions this index answers
Phrased as retrievals, because that is what an index can honestly do: it holds the symbols and the edges between them, and hands them back with the evidence attached.
- Which classes implement this trait, and which methods do they override?
- What does this class extend, and which methods does it override?
- Which constants does this enum declare?
- Which types do this method's parameters and return value declare?
What the analyzer sees in code like this
trait Auditable { // bb records: interface Auditable
String auditTag() { "pay" } // bb records: method auditTag on Auditable
}
class PaymentService implements Auditable { // bb records: class PaymentService + implements edge
Status status // bb records: property status on PaymentService
String auditTag() { "pay-${status}" } // bb records: method auditTag on PaymentService
}
enum Status { PENDING, SETTLED } // bb records: enum Status + members PENDING, SETTLEDSymbols are stored with the file they came from and the bytes they span, so a hit points at a line rather than at a guess. The annotations in the sample are commentary for the reader, not strings the index would store.
Languages that turn up in the same repository
Scripting & shell — the count beside each name is how many relationship types that family’s analyzer constructs.
The extensions, registry names, recorded symbols and relationship types above are the parser registry row for Groovy, read while the page rendered — the same row the register reads, so the two surfaces cannot tell two stories. Every relationship type listed as constructed appears in src/ast/real-*, the analyzer modules bb ships. bb 0.1.0 answers from a local store over 50 languages (53 registry ids, three of them aliases). There is no benchmark on this page: every claim here is one you can go and read in the source.