public class ModelMethod extends ModelEntity<ExecutableElement> implements ModelWithAnnotation
| Modifier and Type | Field and Description |
|---|---|
protected List<ModelAnnotation> |
annotations |
protected List<com.abubusoft.kripton.common.Pair<String,com.squareup.javapoet.TypeName>> |
parameters |
protected com.squareup.javapoet.TypeName |
returnClass |
element, name| Constructor and Description |
|---|
ModelMethod(ExecutableElement element) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotation(ModelAnnotation annotation) |
com.squareup.javapoet.TypeName |
findParameterType(String name)
Check if method contains a parameter with value as typeName
|
ModelAnnotation |
getAnnotation(Class<? extends Annotation> value) |
List<com.abubusoft.kripton.common.Pair<String,com.squareup.javapoet.TypeName>> |
getParameters() |
com.squareup.javapoet.TypeName |
getReturnClass() |
boolean |
hasAnnotation(Class<? extends Annotation> annotationClazz)
Check if method contains a parameter with value as typeName
|
void |
setReturnClass(com.squareup.javapoet.TypeName returnClass) |
equals, getElement, getName, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetElementprotected List<ModelAnnotation> annotations
protected List<com.abubusoft.kripton.common.Pair<String,com.squareup.javapoet.TypeName>> parameters
protected com.squareup.javapoet.TypeName returnClass
public ModelMethod(ExecutableElement element)
public ModelAnnotation getAnnotation(Class<? extends Annotation> value)
getAnnotation in interface ModelWithAnnotationpublic List<com.abubusoft.kripton.common.Pair<String,com.squareup.javapoet.TypeName>> getParameters()
public com.squareup.javapoet.TypeName getReturnClass()
public void setReturnClass(com.squareup.javapoet.TypeName returnClass)
returnClass - the returnClass to setpublic void addAnnotation(ModelAnnotation annotation)
addAnnotation in interface ModelWithAnnotationpublic com.squareup.javapoet.TypeName findParameterType(String name)
typeName - parameter typeName to findpublic boolean hasAnnotation(Class<? extends Annotation> annotationClazz)
hasAnnotation in interface ModelWithAnnotationtypeName - parameter typeName to findCopyright © 2017. All rights reserved.