Record Class InjectionSite
java.lang.Object
java.lang.Record
be.imgn.inject.processor.spi.InjectionSite
- Record Components:
element- the annotated field or parameterbeanType- the type declaring the field, or owning the constructor/methodtargetType- the field's or parameter's declared typeprocessingEnvironment- the current processing environment
public record InjectionSite(Element element, TypeElement beanType, TypeMirror targetType, ProcessingEnvironment processingEnvironment)
extends Record
An injection site offered to an
InjectPlugin — a field, or a constructor/method parameter.-
Constructor Summary
ConstructorsConstructorDescriptionInjectionSite(Element element, TypeElement beanType, TypeMirror targetType, ProcessingEnvironment processingEnvironment) Creates an instance of aInjectionSiterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbeanType()Returns the value of thebeanTyperecord component.element()Returns the value of theelementrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprocessingEnvironmentrecord component.Returns the value of thetargetTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InjectionSite
public InjectionSite(Element element, TypeElement beanType, TypeMirror targetType, ProcessingEnvironment processingEnvironment) Creates an instance of aInjectionSiterecord class.- Parameters:
element- the value for theelementrecord componentbeanType- the value for thebeanTyperecord componenttargetType- the value for thetargetTyperecord componentprocessingEnvironment- the value for theprocessingEnvironmentrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
element
-
beanType
-
targetType
Returns the value of thetargetTyperecord component.- Returns:
- the value of the
targetTyperecord component
-
processingEnvironment
Returns the value of theprocessingEnvironmentrecord component.- Returns:
- the value of the
processingEnvironmentrecord component
-