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 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 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.