Class ModuleInfoCreator
java.lang.Object
io.github.dmlloyd.moduleinfo.ModuleInfoCreator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate boolean(package private) static final intprivate String(package private) String(package private) Stringprivate booleanprivate booleanprivate booleanprivate booleanprivate Pathprivate Stringprivate Stringprivate static final String[]private Path -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanprivate booleanisClassFile(Path path) booleanbooleanbooleanprivate booleanprivate booleanisManifest(Path path) private booleanprivate booleanisMetaInfProviders(Path path) private booleanisMetaInfServices(Path path) private booleanisVersionDirectory(Path path) static voidprivate static <E> Set<E> newLinkedHashSet(Object ignored) private static <T> List<T> 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) private voidreadClassPathClassFile(Path basePath, Path path) (package private) voidreadClassPathFile(Path basePath, Path path) (package private) voidreadClassPathItem(Path basePath, Path path) private voidreadClassPathManifest(Path basePath, Path path) private voidreadClassPathProvidersFile(Path basePath, Path path) private voidreadClassPathServicesFile(Path basePath, Path path) voidrun()setAddExports(boolean addExports) setAddMandatory(boolean addMandatory) setAddPackages(boolean addPackages) setClassesPaths(List<Path> classesPaths) voidsetDefaultModuleName(String moduleName) setDetectProvides(boolean detectProvides) setDetectUses(boolean detectUses) setDetectVersion(boolean detectVersion) setModuleInfoYml(Path moduleInfoYml) setModuleName(String moduleName) setModuleVersion(String moduleVersion) setOutputDirectory(Path outputDirectory)
-
Field Details
-
ASM_VERSION
static final int ASM_VERSION- See Also:
-
NO_STRINGS
-
moduleInfoYml
-
outputDirectory
-
classesPaths
-
moduleName
-
moduleVersion
-
addMandatory
private boolean addMandatory -
addPackages
private boolean addPackages -
addExports
private boolean addExports -
detectUses
private boolean detectUses -
detectProvides
private boolean detectProvides -
detectVersion
private boolean detectVersion -
help
private boolean help -
defaultModuleName
-
detectedClassPathProvides
-
detectedClassPathUsesNames
-
detectedClassPathPackages
-
detectedClassPathVersion
String detectedClassPathVersion -
detectedClassPathAutoModuleName
String detectedClassPathAutoModuleName
-
-
Constructor Details
-
ModuleInfoCreator
public ModuleInfoCreator()
-
-
Method Details
-
main
- Throws:
IOExceptionXMLStreamException
-
getModuleInfoYml
-
setModuleInfoYml
-
getOutputDirectory
-
setOutputDirectory
-
getClassesPaths
-
setClassesPaths
-
isAddPackages
public boolean isAddPackages() -
setAddPackages
-
isAddMandatory
public boolean isAddMandatory() -
setAddMandatory
-
isAddExports
public boolean isAddExports() -
setAddExports
-
isDetectUses
public boolean isDetectUses() -
setDetectUses
-
isDetectProvides
public boolean isDetectProvides() -
setDetectProvides
-
getModuleVersion
-
setModuleVersion
-
getModuleName
-
setModuleName
-
getDefaultModuleName
-
setDefaultModuleName
-
isDetectVersion
public boolean isDetectVersion() -
setDetectVersion
-
run
- Throws:
IOExceptionXMLStreamException
-
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) -
isClassFile
-
isMetaInf
-
isVersionDirectory
-
isInt
-
isManifest
-
isMetaInfServices
-
isMetaInfProviders
-
readClassPathItem
- Throws:
IOException
-
readClassPathFile
- Throws:
IOException
-
readClassPathServicesFile
- Throws:
IOException
-
readClassPathProvidersFile
- Throws:
IOException
-
readClassPathManifest
- Throws:
IOException
-
readClassPathClassFile
- Throws:
IOException
-
newList
-
newLinkedHashSet
-