public final class ModelUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NONE |
static String |
OBJECT |
Modifier and Type | Method and Description |
---|---|
static <A extends Annotation,E extends Element> |
filterByAnnotation(List<E> elements,
Class<A> annotation) |
static <A extends Annotation> |
findMethodsAnnotatedWith(TypeElement classElement,
Class<A> annotation) |
static TypeElement |
getClassElement(Element element) |
static String |
getClassName(Element element) |
static List<VariableElement> |
getFields(TypeElement element) |
static String |
getFullyQualifiedName(String fullName) |
static PackageElement |
getPackageElement(Element element) |
static String |
getPackageName(Element element) |
static List<String> |
splitTypes(String fullName) |
public static final String NONE
public static final String OBJECT
public static TypeElement getClassElement(Element element)
public static PackageElement getPackageElement(Element element)
public static List<VariableElement> getFields(TypeElement element)
public static <A extends Annotation> List<ExecutableElement> findMethodsAnnotatedWith(TypeElement classElement, Class<A> annotation)
public static <A extends Annotation,E extends Element> List<E> filterByAnnotation(List<E> elements, Class<A> annotation)
Copyright © 2019 JBoss by Red Hat. All rights reserved.