Package io.github.dmlloyd.moduleinfo
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 TypeMethodDescriptionvoid
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, String name, Object value) private void
processAnnotationValues
(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.yml
file
-
-
Method Details
-
accept
Read themodule-info.yml
file 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)
-