Package io.github.dmlloyd.moduleinfo
Class ModuleInfoYmlParser
- java.lang.Object
-
- io.github.dmlloyd.moduleinfo.ModuleInfoYmlParser
-
public class ModuleInfoYmlParser extends java.lang.ObjectAmodule-info.ymlparser.
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.file.PathmoduleInfoYmlprivate 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 voidaccept(org.objectweb.asm.ClassVisitor classVisitor)Read themodule-info.ymlfile into the given class visitor.private voidparseRoot(ModuleInfoYml moduleInfo, org.objectweb.asm.ClassVisitor cv)private voidprocessAnnotation(ModuleAnnotation annotation, org.objectweb.asm.AnnotationVisitor annotationVisitor)private voidprocessAnnotation(org.objectweb.asm.ClassVisitor cv, ModuleAnnotation annotation)private voidprocessAnnotationValue(ModuleAnnotation annotation, org.objectweb.asm.AnnotationVisitor visitor, java.lang.String name, java.lang.Object value)private voidprocessAnnotationValues(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.IOExceptionRead themodule-info.ymlfile 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)
-
-