Package org.moditect.internal.compiler
Class ModuleInfoCompiler
- java.lang.Object
-
- org.moditect.internal.compiler.ModuleInfoCompiler
-
public class ModuleInfoCompiler extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classModuleInfoCompiler.Kind
-
Constructor Summary
Constructors Constructor Description ModuleInfoCompiler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]compileModuleInfo(com.github.javaparser.ast.modules.ModuleDeclaration module, java.lang.String mainClass, java.lang.String version)private static java.lang.StringgetNameForBinary(com.github.javaparser.ast.expr.Name name, ModuleInfoCompiler.Kind kind)private static java.lang.StringgetNameForBinary(java.lang.String typeName, ModuleInfoCompiler.Kind kind)static com.github.javaparser.ast.modules.ModuleDeclarationparseModuleInfo(java.lang.String moduleInfoSource)static com.github.javaparser.ast.modules.ModuleDeclarationparseModuleInfo(java.nio.file.Path moduleInfo)private static intrequiresModifiersAsInt(com.github.javaparser.ast.nodeTypes.NodeWithModifiers<?> modifiers)
-
-
-
Method Detail
-
parseModuleInfo
public static com.github.javaparser.ast.modules.ModuleDeclaration parseModuleInfo(java.nio.file.Path moduleInfo)
-
parseModuleInfo
public static com.github.javaparser.ast.modules.ModuleDeclaration parseModuleInfo(java.lang.String moduleInfoSource)
-
compileModuleInfo
public static byte[] compileModuleInfo(com.github.javaparser.ast.modules.ModuleDeclaration module, java.lang.String mainClass, java.lang.String version)
-
getNameForBinary
private static java.lang.String getNameForBinary(com.github.javaparser.ast.expr.Name name, ModuleInfoCompiler.Kind kind)
-
getNameForBinary
private static java.lang.String getNameForBinary(java.lang.String typeName, ModuleInfoCompiler.Kind kind)
-
requiresModifiersAsInt
private static int requiresModifiersAsInt(com.github.javaparser.ast.nodeTypes.NodeWithModifiers<?> modifiers)
-
-