public class KotlinModule extends ResourceFile implements Processable
The name of the module is the filename, excluding the extension (.kotlin_module).
| Modifier and Type | Field and Description |
|---|---|
java.util.List<KotlinModulePackage> |
modulePackages |
java.lang.String |
name
The module name, as opposed to the fileName which includes the module name.
|
KotlinMetadataVersion |
version |
fileName, fileSize, referencesextraFeatureNames, featureNameprocessingFlags, processingInfo| Constructor and Description |
|---|
KotlinModule(java.lang.String fileName,
long fileSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(KotlinModuleVisitor kotlinModuleVisitor) |
void |
accept(ResourceFileVisitor resourceFileVisitor) |
void |
modulePackagesAccept(KotlinModulePackageVisitor kotlinModulePackageVisitor) |
getFileName, getFileSize, toStringaddExtraFeatureName, getExtraFeatureNames, getFeatureName, isInFeature, setFeatureNameaddProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProcessingFlags, getProcessingInfo, setProcessingFlags, setProcessingInfopublic java.lang.String name
fileName will be like "META-INF/my_module_name.kotlin_module".
The fileName is fixed to match after obfuscation by KotlinModuleReferenceFixer.
public KotlinMetadataVersion version
public final java.util.List<KotlinModulePackage> modulePackages
public void modulePackagesAccept(KotlinModulePackageVisitor kotlinModulePackageVisitor)
public void accept(ResourceFileVisitor resourceFileVisitor)
accept in class ResourceFilepublic void accept(KotlinModuleVisitor kotlinModuleVisitor)