public class MethodWrapper extends Object
| Constructor and Description |
|---|
MethodWrapper(ExecutableElement method,
DeclaredType declaredType,
MapperGeneratorContext context) |
| Modifier and Type | Method and Description |
|---|---|
List<InOutType> |
allInOutArgs() |
ExecutableElement |
element() |
TypeMirror |
firstParameterType() |
String |
getFieldName() |
String |
getSimpleName() |
boolean |
hasAnnotation(String annotation) |
boolean |
hasEnumMapper() |
boolean |
hasFields() |
boolean |
hasIgnoreFields() |
boolean |
hasOneParameter() |
boolean |
hasReturnType() |
boolean |
hasTypeParameter() |
InOutType |
inOutArgs() |
InOutType |
inOutType() |
List<InOutType> |
inOutTypes()
retrieves all kind of InOutTypes for a single method with aggregation or not
|
boolean |
isAbstract() |
boolean |
isCustomMapper()
A custom mapper have one parameter and return a type.
|
boolean |
isFactory() |
boolean |
isGetter()
Determines if the wrapping method represent a getter :
public not void method starting with get or is prefix
|
boolean |
isMappingInterceptor()
A mapping interceptor returns void and have two parameters
public void interceptMapping(In in, Out out)
|
boolean |
isSetter()
Determines if the wrapping method is a setter
|
int |
parameterCount() |
TypeMirror |
returnType() |
public MethodWrapper(ExecutableElement method, DeclaredType declaredType, MapperGeneratorContext context)
public TypeMirror firstParameterType()
public TypeMirror returnType()
public String getSimpleName()
public InOutType inOutType()
public List<InOutType> inOutTypes()
public InOutType inOutArgs()
public ExecutableElement element()
public boolean hasOneParameter()
public int parameterCount()
public boolean hasReturnType()
public boolean isGetter()
public boolean isSetter()
public String getFieldName()
public boolean hasAnnotation(String annotation)
public boolean hasIgnoreFields()
public boolean hasEnumMapper()
public boolean isCustomMapper()
public boolean isMappingInterceptor()
public boolean hasFields()
public boolean isAbstract()
public boolean isFactory()
public boolean hasTypeParameter()
Copyright © 2017. All Rights Reserved.