@Immutable public class MockMethodParamModel extends Object implements MethodParamModel
MockMethodParamModel
for use in tests.Modifier and Type | Class and Description |
---|---|
static class |
MockMethodParamModel.Builder |
Constructor and Description |
---|
MockMethodParamModel(TypeSpec typeSpec,
String name,
List<Annotation> annotations,
List<com.squareup.javapoet.AnnotationSpec> externalAnnotations,
Object representedObject) |
Modifier and Type | Method and Description |
---|---|
List<Annotation> |
getAnnotations() |
List<com.squareup.javapoet.AnnotationSpec> |
getExternalAnnotations() |
String |
getName() |
Object |
getRepresentedObject() |
com.squareup.javapoet.TypeName |
getTypeName() |
TypeSpec |
getTypeSpec() |
static MockMethodParamModel.Builder |
newBuilder() |
public MockMethodParamModel(TypeSpec typeSpec, String name, List<Annotation> annotations, List<com.squareup.javapoet.AnnotationSpec> externalAnnotations, Object representedObject)
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 static MockMethodParamModel.Builder newBuilder()