com.jetbrains.plugin.structure.classes.resolvers.ResolutionResult.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.
/*
* Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package com.jetbrains.plugin.structure.classes.resolvers
sealed class ResolutionResult {
object NotFound : ResolutionResult()
data class Invalid(val message: String) : ResolutionResult()
data class FailedToRead(val reason: String) : ResolutionResult()
data class Found(val value: T, val fileOrigin: FileOrigin) : ResolutionResult()
}