Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 2.79 KB

README.md

File metadata and controls

56 lines (44 loc) · 2.79 KB

HandleHints

Build Version Downloads

This IntelliJ plugin helps when working with MethodHandles, VarHandles, and the Foreign Function & Memory API by contributing type hints, inspections, and enhanced auto completions.

Features

  • Dataflow-sensitive type analysis
  • Support for methods from the MethodHandles class
  • Support for methods from the MethodHandles.Lookup class
  • Support for methods from the MethodType class
  • Support for methods from the MethodHandle class
  • Support for methods from MemoryLayout classes (type tracking for memory layouts)
  • Support for methods from the PathElement class
  • Precise type tracking for parameters and return types separately
  • Inspections for supported creation/transformation/combination methods
  • Inspections for invoke and invokeExact arguments and return type checks
  • Inspections for invalid layout paths
  • Inspections for misaligned struct layouts, with quick fixes for padding/alignment adjustment
  • Inlay type hints

Installation

  • 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.