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