This IntelliJ plugin helps when working with MethodHandles, VarHandles,
and the Foreign Function & Memory API by contributing type hints,
inspections, and enhanced auto completions.
- Dataflow-sensitive type analysis
- Support for methods from the
MethodHandlesclass - Support for methods from the
MethodHandles.Lookupclass - Support for methods from the
MethodTypeclass - Support for methods from the
MethodHandleclass - Support for methods from
MemoryLayoutclasses (type tracking for memory layouts) - Support for methods from the
PathElementclass - Precise type tracking for parameters and return types separately
- Inspections for supported creation/transformation/combination methods
- Inspections for
invokeandinvokeExactarguments and return type checks - Inspections for invalid layout paths
- Inspections for misaligned struct layouts, with quick fixes for padding/alignment adjustment
- Inlay type hints
-
Using IDE built-in plugin system:
Settings/Preferences > Plugins > Marketplace > Search for "HandleHints" > Install Plugin
-
Manually:
Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
Plugin based on the IntelliJ Platform Plugin Template.