public class PropModel extends Object implements MethodParamModel
Prop
.Constructor and Description |
---|
PropModel(MethodParamModel paramModel,
boolean isOptional,
boolean isCommonProp,
boolean overrideCommonPropBehavior,
boolean dynamic,
ResType resType,
String varArg) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<Annotation> |
getAnnotations() |
List<AnnotationSpec> |
getExternalAnnotations() |
String |
getName() |
Object |
getRepresentedObject() |
ResType |
getResType() |
TypeName |
getTypeName() |
TypeSpec |
getTypeSpec() |
String |
getVarArgsSingleName() |
boolean |
hasDefault(ImmutableList<PropDefaultModel> propDefaults) |
int |
hashCode() |
boolean |
hasVarArgs() |
boolean |
isCommonProp() |
boolean |
isDynamic() |
boolean |
isOptional() |
boolean |
overrideCommonPropBehavior() |
PropModel |
withName(String name) |
public PropModel(MethodParamModel paramModel, boolean isOptional, boolean isCommonProp, boolean overrideCommonPropBehavior, boolean dynamic, ResType resType, String varArg)
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 boolean isOptional()
public boolean isCommonProp()
public boolean overrideCommonPropBehavior()
public boolean isDynamic()
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.