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<AnnotationSpec> externalAnnotations,
Object representedObject) |
Modifier and Type | Method and Description |
---|---|
List<Annotation> |
getAnnotations() |
List<AnnotationSpec> |
getExternalAnnotations() |
String |
getName() |
Object |
getRepresentedObject() |
TypeName |
getTypeName() |
TypeSpec |
getTypeSpec() |
static MockMethodParamModel.Builder |
newBuilder() |
public MockMethodParamModel(TypeSpec typeSpec, String name, List<Annotation> annotations, List<AnnotationSpec> externalAnnotations, Object representedObject)
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 static MockMethodParamModel.Builder newBuilder()