public class InjectPropModel extends Object implements MethodParamModel
InjectProp.| Constructor and Description |
|---|
InjectPropModel(MethodParamModel paramModel,
boolean isLazy) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<Annotation> |
getAnnotations() |
List<AnnotationSpec> |
getExternalAnnotations() |
String |
getName() |
Object |
getRepresentedObject() |
TypeName |
getTypeName() |
TypeSpec |
getTypeSpec() |
int |
hashCode() |
boolean |
isLazy() |
PropModel |
toPropModel()
Convert to a regular prop model.
|
InjectPropModel |
withName(String name) |
public InjectPropModel(MethodParamModel paramModel, boolean isLazy)
public TypeSpec getTypeSpec()
getTypeSpec in interface MethodParamModelTypeSpec of the param.public TypeName getTypeName()
getTypeName in interface MethodParamModelpublic String getName()
getName in interface MethodParamModelpublic List<Annotation> getAnnotations()
getAnnotations in interface MethodParamModelpublic List<AnnotationSpec> getExternalAnnotations()
getExternalAnnotations in interface MethodParamModelpublic Object getRepresentedObject()
getRepresentedObject in interface MethodParamModelpublic PropModel toPropModel()
public boolean isLazy()
public InjectPropModel withName(String name)
PropModel instance with the given name overridden.