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, references
extraFeatureNames, featureName
processingFlags, 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, toString
addExtraFeatureName, getExtraFeatureNames, getFeatureName, isInFeature, setFeatureName
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProcessingFlags, getProcessingInfo, setProcessingFlags, setProcessingInfo
public 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 ResourceFile
public void accept(KotlinModuleVisitor kotlinModuleVisitor)