@Immutable public class PropModel extends Object implements MethodParamModel
Prop
.Constructor and Description |
---|
PropModel(MethodParamModel paramModel,
boolean isOptional,
ResType resType,
String varArg) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<Annotation> |
getAnnotations() |
List<com.squareup.javapoet.AnnotationSpec> |
getExternalAnnotations() |
String |
getName() |
Object |
getRepresentedObject() |
ResType |
getResType() |
com.squareup.javapoet.TypeName |
getTypeName() |
TypeSpec |
getTypeSpec() |
String |
getVarArgsSingleName() |
boolean |
hasDefault(ImmutableList<PropDefaultModel> propDefaults) |
int |
hashCode() |
boolean |
hasVarArgs() |
boolean |
isOptional() |
PropModel |
withName(String name) |
public PropModel(MethodParamModel paramModel, boolean isOptional, ResType resType, String varArg)
public TypeSpec getTypeSpec()
getTypeSpec
in interface MethodParamModel
TypeSpec
of the param.public com.squareup.javapoet.TypeName getTypeName()
getTypeName
in interface MethodParamModel
public String getName()
getName
in interface MethodParamModel
public List<Annotation> getAnnotations()
getAnnotations
in interface MethodParamModel
public List<com.squareup.javapoet.AnnotationSpec> getExternalAnnotations()
getExternalAnnotations
in interface MethodParamModel
public Object getRepresentedObject()
getRepresentedObject
in interface MethodParamModel
public boolean isOptional()
public ResType getResType()
public boolean hasVarArgs()
public String getVarArgsSingleName()
public boolean hasDefault(ImmutableList<PropDefaultModel> propDefaults)
public PropModel withName(String name)
PropModel
instance with the given name overridden.