Interface CallGraphCollector.OwnershipDecision
- Enclosing class:
CallGraphCollector
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
How a collector gets the closeable ownership decision for its source. Phase 5 passes THE decision
(
StatementOwnedCloseableCalls::new), which marks each statement-owned call (and reports E81071); every
other user of the collector (an on-demand graph for a tool, a test) passes READ_ONLY and only reads the
marks phase 5 already made - it must never write marks or report errors of its own.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CallGraphCollector.OwnershipDecisionNever decides: the collector only reads the marks phase 5 made. -
Method Summary
Modifier and TypeMethodDescriptionConsumer<org.antlr.v4.runtime.tree.ParseTree> forSource(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) The decision for one source.
-
Field Details
-
READ_ONLY
Never decides: the collector only reads the marks phase 5 made.
-
-
Method Details
-
forSource
Consumer<org.antlr.v4.runtime.tree.ParseTree> forSource(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) The decision for one source.- Parameters:
symbolsAndScopes- the collector's own symbols and scopeserrorListener- the source's error listener
-