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 MethodParamModel
TypeSpec
of the param.public TypeName getTypeName()
getTypeName
in interface MethodParamModel
public String getName()
getName
in interface MethodParamModel
public List<Annotation> getAnnotations()
getAnnotations
in interface MethodParamModel
public List<AnnotationSpec> getExternalAnnotations()
getExternalAnnotations
in interface MethodParamModel
public Object getRepresentedObject()
getRepresentedObject
in interface MethodParamModel
public PropModel toPropModel()
public boolean isLazy()
public InjectPropModel withName(String name)
PropModel
instance with the given name overridden.