public class ModelClass<E extends ModelProperty> extends ModelBucket<E,TypeElement> implements ModelElement, ModelWithAnnotation
| Modifier and Type | Field and Description |
|---|---|
protected List<ModelAnnotation> |
annotations |
protected TypeVariableResolver |
typeVariableResolver |
collectionelement, name| Constructor and Description |
|---|
ModelClass(String name,
TypeElement beanElement,
List<ModelAnnotation> annotationList) |
ModelClass(TypeElement element) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ModelElementVisitor visitor) |
void |
add(E value) |
void |
addAnnotation(ModelAnnotation annotation) |
boolean |
containsAnnotation(Class<? extends Annotation> annotation) |
ModelAnnotation |
getAnnotation(Class<? extends Annotation> value) |
List<ModelAnnotation> |
getAnnotations() |
String |
getSimpleName() |
boolean |
hasAnnotation(Class<? extends Annotation> annotationClazz) |
com.squareup.javapoet.TypeName |
resolveTypeVariable(com.squareup.javapoet.TypeName typeName) |
contains, findPropertyByName, get, getCollectionequals, getElement, getName, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetElementprotected List<ModelAnnotation> annotations
protected TypeVariableResolver typeVariableResolver
public ModelClass(TypeElement element)
public ModelClass(String name, TypeElement beanElement, List<ModelAnnotation> annotationList)
public List<ModelAnnotation> getAnnotations()
public String getSimpleName()
public void accept(ModelElementVisitor visitor) throws Exception
accept in interface ModelElementExceptionpublic ModelAnnotation getAnnotation(Class<? extends Annotation> value)
getAnnotation in interface ModelWithAnnotationpublic void addAnnotation(ModelAnnotation annotation)
addAnnotation in interface ModelWithAnnotationpublic boolean containsAnnotation(Class<? extends Annotation> annotation)
public boolean hasAnnotation(Class<? extends Annotation> annotationClazz)
hasAnnotation in interface ModelWithAnnotationpublic com.squareup.javapoet.TypeName resolveTypeVariable(com.squareup.javapoet.TypeName typeName)
public void add(E value)
add in class ModelBucket<E extends ModelProperty,TypeElement>Copyright © 2017. All rights reserved.