Package org.moditect.internal.compiler
Class ModuleInfoCompiler
java.lang.Object
org.moditect.internal.compiler.ModuleInfoCompiler
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]compileModuleInfo(com.github.javaparser.ast.modules.ModuleDeclaration module, String mainClass, String version) private static StringgetNameForBinary(com.github.javaparser.ast.expr.Name name, ModuleInfoCompiler.Kind kind) private static StringgetNameForBinary(String typeName, ModuleInfoCompiler.Kind kind) static com.github.javaparser.ast.modules.ModuleDeclarationparseModuleInfo(String moduleInfoSource) static com.github.javaparser.ast.modules.ModuleDeclarationparseModuleInfo(Path moduleInfo) private static intrequiresModifiersAsInt(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
private static String getNameForBinary(com.github.javaparser.ast.expr.Name name, ModuleInfoCompiler.Kind kind) -
getNameForBinary
-
requiresModifiersAsInt
private static int requiresModifiersAsInt(com.github.javaparser.ast.nodeTypes.NodeWithModifiers<?> modifiers)
-