Class ElementJavaAnnotations
- java.lang.Object
-
- com.g2forge.alexandria.java.reflect.annotations.ElementJavaAnnotations
-
- All Implemented Interfaces:
IJavaAnnotations
public class ElementJavaAnnotations extends Object implements IJavaAnnotations
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ElementJavaAnnotations.ElementJavaAnnotationsBuilder
-
Field Summary
Fields Modifier and Type Field Description protected AnnotatedElement
annotatedElement
-
Constructor Summary
Constructors Constructor Description ElementJavaAnnotations(AnnotatedElement annotatedElement)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ElementJavaAnnotations.ElementJavaAnnotationsBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
AnnotatedElement
getAnnotatedElement()
<T extends Annotation>
TgetAnnotation(Class<T> type)
Collection<? extends Annotation>
getAnnotations(JavaScope scope)
int
hashCode()
boolean
isAnnotated(Class<? extends Annotation> type)
ElementJavaAnnotations.ElementJavaAnnotationsBuilder
toBuilder()
String
toString()
-
-
-
Field Detail
-
annotatedElement
protected final AnnotatedElement annotatedElement
-
-
Constructor Detail
-
ElementJavaAnnotations
@ConstructorProperties("annotatedElement") public ElementJavaAnnotations(AnnotatedElement annotatedElement)
-
-
Method Detail
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> type)
- Specified by:
getAnnotation
in interfaceIJavaAnnotations
-
getAnnotations
public Collection<? extends Annotation> getAnnotations(JavaScope scope)
- Specified by:
getAnnotations
in interfaceIJavaAnnotations
-
isAnnotated
public boolean isAnnotated(Class<? extends Annotation> type)
- Specified by:
isAnnotated
in interfaceIJavaAnnotations
-
builder
public static ElementJavaAnnotations.ElementJavaAnnotationsBuilder builder()
-
toBuilder
public ElementJavaAnnotations.ElementJavaAnnotationsBuilder toBuilder()
-
getAnnotatedElement
public AnnotatedElement getAnnotatedElement()
-
canEqual
protected boolean canEqual(Object other)
-
-