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 java.lang.Object
Wrapper type for an executable element.
-
-
Constructor Summary
Constructors Constructor Description DaggerExecutableElement()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract DaggerProcessingEnv.Backend
backend()
Returns the backend used in this compilation.abstract javax.lang.model.element.ExecutableElement
javac()
Returns the Javac representation for the executable element.abstract com.google.devtools.ksp.symbol.KSFunctionDeclaration
ksp()
Returns the KSP representation for the executable element.
-
-
-
Method Detail
-
javac
public abstract javax.lang.model.element.ExecutableElement javac()
Returns the Javac representation for the executable element.- Throws:
java.lang.IllegalStateException
- if the current backend isn't Javac.
-
ksp
public abstract com.google.devtools.ksp.symbol.KSFunctionDeclaration ksp()
Returns the KSP representation for the executable element.- Throws:
java.lang.IllegalStateException
- if the current backend isn't KSP.
-
backend
public abstract DaggerProcessingEnv.Backend backend()
Returns the backend used in this compilation.
-
-