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 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 static MockMethodParamModel.Builder newBuilder()