com.jetbrains.plugin.structure.classes.resolvers.EmptyNamedResolver.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of structure-classes Show documentation
Show all versions of structure-classes Show documentation
Base library for resolving class files and resources. Used by other JetBrains Plugins Structure Classes libraries.
The newest version!
package com.jetbrains.plugin.structure.classes.resolvers
import org.objectweb.asm.tree.ClassNode
import java.util.*
class EmptyNamedResolver(val name: String) : Resolver() {
override val readMode
get() = ReadMode.FULL
override fun processAllClasses(processor: (ResolutionResult) -> Boolean) = true
override fun resolveClass(className: String) = ResolutionResult.NotFound
override fun resolveExactPropertyResourceBundle(baseName: String, locale: Locale) = ResolutionResult.NotFound
override fun containsClass(className: String) = false
override fun containsPackage(packageName: String) = false
override val allClasses get() = emptySet()
override val allPackages get() = emptySet()
override val allBundleNameSet: ResourceBundleNameSet get() = ResourceBundleNameSet(emptyMap())
override fun toString() = "$name (empty resolver)"
override fun close() = Unit
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy