Class ResourceClassOutput

java.lang.Object
io.quarkus.arc.processor.ResourceClassOutput
All Implemented Interfaces:
io.quarkus.gizmo2.ClassOutput

public class ResourceClassOutput extends Object implements io.quarkus.gizmo2.ClassOutput
  • Constructor Details

    • ResourceClassOutput

      public ResourceClassOutput(boolean applicationClass, boolean generateSource)
      Parameters:
      applicationClass - whether the generated classes are application classes or not
      generateSource - whether to also generate textual representation of the code
    • ResourceClassOutput

      public ResourceClassOutput(boolean applicationClass, Function<String,ResourceOutput.Resource.SpecialType> specialTypeFunction, boolean generateSource)
      Parameters:
      applicationClass - whether the generated classes are application classes or not
      specialTypeFunction - function accepting a binary name of the generated class and returning the ResourceOutput.Resource.SpecialType of the class (or null)
      generateSource - whether to also generate textual representation of the code
  • Method Details

    • write

      public void write(String name, byte[] data)
      Specified by:
      write in interface io.quarkus.gizmo2.ClassOutput