Class ModuleInfoYmlParser
java.lang.Object
io.github.dmlloyd.moduleinfo.ModuleInfoYmlParser
A
module-info.yml parser.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(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, String name, Object value) private voidprocessAnnotationValues(ModuleAnnotation annotation, org.objectweb.asm.AnnotationVisitor visitor, List<?> list)
-
Field Details
-
NO_STRINGS
-
moduleInfoYml
-
-
Constructor Details
-
ModuleInfoYmlParser
Construct a new instance.- Parameters:
moduleInfoYml- the path to themodule-info.ymlfile
-
-
Method Details
-
accept
Read themodule-info.ymlfile into the given class visitor.- Parameters:
classVisitor- the class visitor (must not benull)- Throws:
IOException- if an I/O exception occurred
-
parseRoot
-
processAnnotation
-
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)
-