Skip to main content

Module java

Module java 

Source
Expand description

Java’s role rows: one row of each shape the macro accepts, so the shapes were proven against a real grammar before any consumer read them (#1691). The Halstead keyword roles (#1693), the paying-construct roles — Comparison, ShortCircuit, EagerLogical, Ternary, CaseArm, Guard, NullSafe (#1694, #1695) — the space tree (#1696) and the control flow — Branch, Switch, Loop, Catch, ElseIf, Exit (#1697) — and the documentation rows (#1699) are declared.

Modules§

branch
This language’s Branch row.
call
This language’s Call row.
case_arm
This language’s CaseArm row.
catch
This language’s Catch row.
closure
This language’s Closure row.
comment
This language’s Comment row.
comparison
This language’s Comparison row.
container
This language’s Container row.
decl_keyword
This language’s DeclKeyword row.
doc_body_residual
This language’s DocBodyResidual row.
doc_comment
This language’s DocComment row.
doc_run_directive
This language’s DocRunDirective row.
doc_run_opener
This language’s DocRunOpener row.
doc_target
This language’s DocTarget row.
docstring
This language’s Docstring row.
eager_logical
This language’s EagerLogical row.
else_if
This language’s ElseIf row.
exit
This language’s Exit row.
func_opener
This language’s FuncOpener row.
guard
This language’s Guard row.
loop
This language’s Loop row.
member
This language’s Member row.
modifier
This language’s Modifier row.
null_safe
This language’s NullSafe row.
primitive
This language’s Primitive row.
short_circuit
This language’s ShortCircuit row.
string_lit
This language’s StringLit row.
switch
This language’s Switch row.
ternary
This language’s Ternary row.

Functions§

is_record_header
Whether list is record’s record_header: the same node, not one of its kind.
is_switch_body_kind
The container a switch nests its arms in: the switch_block, the Switch owner’s child — a structural fact about the construct the row recognises, pinned by switch_body_is_the_owners_child_and_not_the_switch_rows, not an owner of that row. The kind is claimed by DocBodyResidual (a switch_block holds a doc comment, #1699), which is a different question. Which consumer opens a level here (cognitive, so a ternary or lambda in the switch’s subject does not inherit one, #1697) is that consumer’s policy, and a consumer’s structural projection of an owner’s child lives as a named fn beside the table, as here (#1701); a DSL body attribute on the Switch row would be the declared form if a third grammar needs it.
opens_space
The SpaceKind node opens, folded over every opens annotation in this table; Unknown when it opens none. This is the one gated scan of the space-opening rows: a consumer that needs both “does it open a space” and “which kind” calls this once and tests for Unknown, rather than paying each owner’s gate twice through owns and here.
record_header
A record’s header: the component list in the parameters field of a record_declaration, a sibling of its class_body — the node the FuncOpener row opens the implicit canonical constructor’s space on (#1842). None for any other node: every callable holds its own list in a field of the same name, so the record’s kind is part of the relation. A structural fact about the construct the rows recognise, held once for the row’s gate and for the consumers that step between a record and its header — the space’s name, nargs’ parameter owner, npm’s method count (#1863); pinned by java_record_header_is_the_records_own_list.