Class RawJavap

java.lang.Object
org.ek9lang.compiler.backend.jvm.RawJavap
All Implemented Interfaces:
Function<byte[],String>

public final class RawJavap extends Object implements Function<byte[],String>
THE RAW javap -c -p -l -v output for some class bytes, with no normalization at all.

This is the shared entry point for callers that want to slice ONE section out of javap's output (the @DEBUG directive, via JavapSectionExtractor) rather than the whole-class normalized form BytecodeNormalizer.normalize(byte[]) produces. The javap invocation itself is BytecodeNormalizer's, so @DEBUG does not re-derive it. Hold one.

  • Constructor Details

    • RawJavap

      public RawJavap()
  • Method Details

    • apply

      public String apply(byte[] classBytes)
      The raw javap output.
      Specified by:
      apply in interface Function<byte[],String>
      Parameters:
      classBytes - Compiled .class file bytes
      Returns:
      Raw javap output
      Throws:
      RuntimeException - if javap execution fails