Package org.moditect.internal.compiler
Class ModuleInfoCompiler
java.lang.Object
org.moditect.internal.compiler.ModuleInfoCompiler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
compileModuleInfo
(com.github.javaparser.ast.modules.ModuleDeclaration module, String mainClass, String version) private static String
getNameForBinary
(com.github.javaparser.ast.expr.Name name) private static String
getNameForBinary
(String typeName) static com.github.javaparser.ast.modules.ModuleDeclaration
parseModuleInfo
(String moduleInfoSource) static com.github.javaparser.ast.modules.ModuleDeclaration
parseModuleInfo
(Path moduleInfo) private static int
requiresModifiersAsInt
(com.github.javaparser.ast.nodeTypes.NodeWithModifiers<?> modifiers)
-
Constructor Details
-
ModuleInfoCompiler
public ModuleInfoCompiler()
-
-
Method Details
-
parseModuleInfo
-
parseModuleInfo
public static com.github.javaparser.ast.modules.ModuleDeclaration parseModuleInfo(String moduleInfoSource) -
compileModuleInfo
-
getNameForBinary
-
getNameForBinary
-
requiresModifiersAsInt
private static int requiresModifiersAsInt(com.github.javaparser.ast.nodeTypes.NodeWithModifiers<?> modifiers)
-