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