class

Noir::TreeSitterJavaRouteExtractor::ProjectConstants

Inherits Hash < Iterable < Enumerable < Reference < Object

The project's qualified String constants (JavaEngine#java_project_constants). It also answers "which constants does class X declare", behind an index built on first use, so import static pkg.Class.* in each of thousands of files costs a lookup instead of a walk over the whole table.

Instance methods

constants_of(owner : String) : Array(Tuple(String, String)) | Nil

{bare name, value} of every constant declared directly in owner (com.ex.Paths), nil when it declares none. The analyzers' worker threads share one table, so the index is built under a lock.

Source