Package io.github.dmlloyd.moduleinfo
Class ModuleInfoYmlParser
- java.lang.Object
-
- io.github.dmlloyd.moduleinfo.ModuleInfoYmlParser
-
public class ModuleInfoYmlParser extends java.lang.Object
Amodule-info.yml
parser.
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.file.Path
moduleInfoYml
private static java.lang.String[]
NO_STRINGS
-
Constructor Summary
Constructors Constructor Description ModuleInfoYmlParser(java.nio.file.Path moduleInfoYml)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(org.objectweb.asm.ClassVisitor classVisitor)
Read themodule-info.yml
file into the given class visitor.private void
parseRoot(ModuleInfoYml moduleInfo, org.objectweb.asm.ClassVisitor cv)
private void
processAnnotation(ModuleAnnotation annotation, org.objectweb.asm.AnnotationVisitor annotationVisitor)
private void
processAnnotation(org.objectweb.asm.ClassVisitor cv, ModuleAnnotation annotation)
private void
processAnnotationValue(ModuleAnnotation annotation, org.objectweb.asm.AnnotationVisitor visitor, java.lang.String name, java.lang.Object value)
private void
processAnnotationValues(ModuleAnnotation annotation, org.objectweb.asm.AnnotationVisitor visitor, java.util.List<?> list)
-
-
-
Method Detail
-
accept
public void accept(org.objectweb.asm.ClassVisitor classVisitor) throws java.io.IOException
Read themodule-info.yml
file into the given class visitor.- Parameters:
classVisitor
- the class visitor (must not benull
)- Throws:
java.io.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, java.lang.String name, java.lang.Object value)
-
processAnnotationValues
private void processAnnotationValues(ModuleAnnotation annotation, org.objectweb.asm.AnnotationVisitor visitor, java.util.List<?> list)
-
-