Package dagger.spi.model
Class DaggerExecutableElement
java.lang.Object
dagger.spi.model.DaggerExecutableElement
@DoNotMock("Only use real implementations created by Dagger")
public abstract class DaggerExecutableElement
extends Object
Wrapper type for an executable element.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract DaggerProcessingEnv.Backendbackend()Returns the backend used in this compilation.abstract ExecutableElementjavac()Returns the Javac representation for the executable element.abstract com.google.devtools.ksp.symbol.KSDeclarationksp()Returns the KSP representation for the executable element.
-
Constructor Details
-
DaggerExecutableElement
public DaggerExecutableElement()
-
-
Method Details
-
javac
Returns the Javac representation for the executable element.- Throws:
IllegalStateException- if the current backend isn't Javac.
-
ksp
public abstract com.google.devtools.ksp.symbol.KSDeclaration ksp()Returns the KSP representation for the executable element. Can be either KSFunctionDeclaration or KSPropertyDeclaration.- Throws:
IllegalStateException- if the current backend isn't KSP.
-
backend
Returns the backend used in this compilation.
-