Class ModuleInfoYmlParser

java.lang.Object
io.github.dmlloyd.moduleinfo.ModuleInfoYmlParser

public class ModuleInfoYmlParser extends Object
A module-info.yml parser.
  • Field Details

    • NO_STRINGS

      private static final String[] NO_STRINGS
    • moduleInfoYml

      private final Path moduleInfoYml
  • Constructor Details

    • ModuleInfoYmlParser

      public ModuleInfoYmlParser(Path moduleInfoYml)
      Construct a new instance.
      Parameters:
      moduleInfoYml - the path to the module-info.yml file
  • Method Details

    • accept

      public void accept(org.objectweb.asm.ClassVisitor classVisitor) throws IOException
      Read the module-info.yml file into the given class visitor.
      Parameters:
      classVisitor - the class visitor (must not be null)
      Throws:
      IOException - if an I/O exception occurred
    • parseRoot

      private void parseRoot(ModuleInfoYml moduleInfo, org.objectweb.asm.ClassVisitor cv)
    • processAnnotation

      private void processAnnotation(org.objectweb.asm.ClassVisitor cv, ModuleAnnotation annotation)
    • processAnnotation

      private void processAnnotation(ModuleAnnotation annotation, org.objectweb.asm.AnnotationVisitor annotationVisitor)
    • processAnnotationValue

      private void processAnnotationValue(ModuleAnnotation annotation, org.objectweb.asm.AnnotationVisitor visitor, String name, Object value)
    • processAnnotationValues

      private void processAnnotationValues(ModuleAnnotation annotation, org.objectweb.asm.AnnotationVisitor visitor, List<?> list)