Package io.leangen.graphql.metadata
Class TypedElement
- java.lang.Object
-
- io.leangen.graphql.metadata.TypedElement
-
- All Implemented Interfaces:
AnnotatedElement
public class TypedElement extends Object implements AnnotatedElement
-
-
Constructor Summary
Constructors Constructor Description TypedElement(AnnotatedType javaType, AnnotatedElement... elements)TypedElement(AnnotatedType javaType, List<? extends AnnotatedElement> elements)TypedElement(List<TypedElement> merge)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Annotation>
TgetAnnotation(Class<T> annotationClass)Annotation[]getAnnotations()Annotation[]getDeclaredAnnotations()AnnotatedElementgetElement()List<AnnotatedElement>getElements()AnnotatedTypegetJavaType()booleanisAnnotationPresent(Class<? extends Annotation> annotation)booleanisAnnotationPresentAnywhere(Class<? extends Annotation> annotation)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
-
-
-
-
Constructor Detail
-
TypedElement
public TypedElement(AnnotatedType javaType, AnnotatedElement... elements)
-
TypedElement
public TypedElement(AnnotatedType javaType, List<? extends AnnotatedElement> elements)
-
TypedElement
public TypedElement(List<TypedElement> merge)
-
-
Method Detail
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotation)
- Specified by:
isAnnotationPresentin interfaceAnnotatedElement
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
- Specified by:
getAnnotationin interfaceAnnotatedElement
-
getAnnotations
public Annotation[] getAnnotations()
- Specified by:
getAnnotationsin interfaceAnnotatedElement
-
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement
-
isAnnotationPresentAnywhere
public boolean isAnnotationPresentAnywhere(Class<? extends Annotation> annotation)
-
getJavaType
public AnnotatedType getJavaType()
-
getElements
public List<AnnotatedElement> getElements()
-
getElement
public AnnotatedElement getElement()
-
-