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()
AnnotatedElement
getElement()
List<AnnotatedElement>
getElements()
AnnotatedType
getJavaType()
boolean
isAnnotationPresent(Class<? extends Annotation> annotation)
boolean
isAnnotationPresentAnywhere(Class<? extends Annotation> annotation)
String
toString()
-
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:
isAnnotationPresent
in interfaceAnnotatedElement
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
- Specified by:
getAnnotation
in interfaceAnnotatedElement
-
getAnnotations
public Annotation[] getAnnotations()
- Specified by:
getAnnotations
in interfaceAnnotatedElement
-
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotations
in interfaceAnnotatedElement
-
isAnnotationPresentAnywhere
public boolean isAnnotationPresentAnywhere(Class<? extends Annotation> annotation)
-
getJavaType
public AnnotatedType getJavaType()
-
getElements
public List<AnnotatedElement> getElements()
-
getElement
public AnnotatedElement getElement()
-
-