Skip to main content

Module ctx

Module ctx 

Source
Expand description

The DEX front-end’s implementation of jdc_core::Ctx.

Every method here answers a semantic question about class metadata using the pooled DEX class table; generics are absent (erased), so all generic-aware queries answer “unknown” and the core degrades gracefully.

Structs§

DexCtx
Front-end context handed to the core’s structurer and printer.

Functions§

java_type_to_generic
Erased JavaType → generic type view (no signature data in DEX).
nested_is_static
Pool-level mirror of the DexCtx::nested_is_static render decision for passes that run without a ctx (method.rs). ACC_STATIC annotation evidence OR the structural signals — no outer-typed this$0 field, or no formal-0 outer ctor param (a this$0 field without the formal-0 param is a Kotlin lambda capture, not a JLS outer).
type_ref_of
Render a type reference for signatures where the printer is not used.