| Modifier and Type | Field and Description |
|---|---|
static String |
EXTENSION
The module file name extension.
|
constant_pool, EMPTY_ARRAY, length, name_index, tag| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class.
|
Attribute |
copy(ConstantPool constantPool) |
void |
dump(DataOutputStream file)
Dump Module attribute to file stream in binary format.
|
ModuleExports[] |
getExportsTable() |
int |
getModuleFlags()
Gets flags for this module.
|
String |
getModuleName(ConstantPool cp)
Gets module name.
|
ModuleOpens[] |
getOpensTable() |
ModuleProvides[] |
getProvidesTable() |
ModuleRequires[] |
getRequiresTable() |
String[] |
getUsedClassNames(ConstantPool constantPool,
boolean compactClassName)
Gets the array of class names for this module's uses.
|
String |
getVersion(ConstantPool cp)
Gets version for this module.
|
String |
toString() |
addAttributeReader, addAttributeReader, clone, getConstantPool, getLength, getName, getNameIndex, getTag, println, readAttribute, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndexpublic static final String EXTENSION
public void accept(Visitor v)
public Attribute copy(ConstantPool constantPool)
public void dump(DataOutputStream file) throws IOException
dump in class Attributefile - Output file streamIOException - if an I/O error occurs.public ModuleExports[] getExportsTable()
ModuleExportspublic int getModuleFlags()
public String getModuleName(ConstantPool cp)
cp - Array of constantspublic ModuleOpens[] getOpensTable()
ModuleOpenspublic ModuleProvides[] getProvidesTable()
ModuleProvidespublic ModuleRequires[] getRequiresTable()
ModuleRequirespublic String[] getUsedClassNames(ConstantPool constantPool, boolean compactClassName)
constantPool - Array of constants usually obtained from the ClassFile objectcompactClassName - false for original constant pool value, true to replace '/' with '.'public String getVersion(ConstantPool cp)
cp - Array of constantsCopyright © 2004–2025 The Apache Software Foundation. All rights reserved.