Class BytecodeModule
java.lang.Object
org.eolang.jeo.representation.bytecode.BytecodeModule
- All Implemented Interfaces:
BytecodeAttribute
Bytecode module.
- Since:
- 0.14.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eolang.jeo.representation.bytecode.BytecodeAttribute
BytecodeAttribute.EnclosingMethod, BytecodeAttribute.NestHost, BytecodeAttribute.NestMembers, BytecodeAttribute.PermittedSubclasses, BytecodeAttribute.RecordComponents, BytecodeAttribute.SourceFile -
Constructor Summary
ConstructorsConstructorDescriptionBytecodeModule(String name, int access, String version, String main, List<String> packages, List<BytecodeModuleRequired> requires, List<BytecodeModuleExported> exports, List<BytecodeModuleOpened> opens, List<BytecodeModuleProvided> provides, List<String> uses) Constructor. -
Method Summary
-
Constructor Details
-
BytecodeModule
public BytecodeModule(String name, int access, String version, String main, List<String> packages, List<BytecodeModuleRequired> requires, List<BytecodeModuleExported> exports, List<BytecodeModuleOpened> opens, List<BytecodeModuleProvided> provides, List<String> uses) Constructor.- Parameters:
name- Module nameaccess- Module access flagsversion- Module versionmain- Module main classpackages- Module packagesrequires- Module dependenciesexports- Module exportsopens- Module opensprovides- Module providesuses- Module uses
-
-
Method Details
-
write
public void write(org.objectweb.asm.ClassVisitor visitor) Description copied from interface:BytecodeAttributeWrite to class.- Specified by:
writein interfaceBytecodeAttribute- Parameters:
visitor- Bytecode where to write.
-
write
Description copied from interface:BytecodeAttributeWrite to method.- Specified by:
writein interfaceBytecodeAttribute- Parameters:
method- Bytecode where to write.labels- Method labels.
-
directives
Description copied from interface:BytecodeAttributeConverts to directives.- Specified by:
directivesin interfaceBytecodeAttribute- Parameters:
index- Index of the attribute.format- Format of the directives.- Returns:
- Directives.
-