Package org.revapi.java.model
Class AnnotationElement
- java.lang.Object
-
- org.revapi.base.BaseElement<org.revapi.java.spi.JavaElement>
-
- org.revapi.java.model.AbstractJavaElement
-
- org.revapi.java.model.AnnotationElement
-
- All Implemented Interfaces:
Cloneable
,Comparable<org.revapi.java.spi.JavaElement>
,org.revapi.Element<org.revapi.java.spi.JavaElement>
,org.revapi.java.spi.JavaAnnotationElement
,org.revapi.java.spi.JavaElement
public final class AnnotationElement extends AbstractJavaElement implements org.revapi.java.spi.JavaAnnotationElement
- Since:
- 0.1
- Author:
- Lukas Krejci
-
-
Field Summary
-
Fields inherited from class org.revapi.java.model.AbstractJavaElement
environment
-
-
Constructor Summary
Constructors Constructor Description AnnotationElement(ProbingEnvironment environment, org.revapi.Archive archive, AnnotationMirror annotation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationElement
clone()
int
compareTo(org.revapi.java.spi.JavaElement o)
AnnotationMirror
getAnnotation()
org.revapi.API
getApi()
String
getFullHumanReadableString()
org.revapi.java.spi.JavaModelElement
getParent()
org.revapi.java.spi.TypeEnvironment
getTypeEnvironment()
String
toString()
-
Methods inherited from class org.revapi.java.model.AbstractJavaElement
newReference, setArchive
-
Methods inherited from class org.revapi.base.BaseElement
castThis, getArchive, getChildren, getReferencedElements, getReferencingElements, iterateOverChildren, newChildrenInstance, searchChildren, searchChildren, setParent
-
-
-
-
Constructor Detail
-
AnnotationElement
public AnnotationElement(ProbingEnvironment environment, org.revapi.Archive archive, AnnotationMirror annotation)
-
-
Method Detail
-
getParent
@Nonnull public org.revapi.java.spi.JavaModelElement getParent()
- Specified by:
getParent
in interfaceorg.revapi.Element<org.revapi.java.spi.JavaElement>
- Specified by:
getParent
in interfaceorg.revapi.java.spi.JavaAnnotationElement
- Overrides:
getParent
in classorg.revapi.base.BaseElement<org.revapi.java.spi.JavaElement>
-
getApi
@Nonnull public org.revapi.API getApi()
- Specified by:
getApi
in interfaceorg.revapi.Element<org.revapi.java.spi.JavaElement>
- Overrides:
getApi
in classorg.revapi.base.BaseElement<org.revapi.java.spi.JavaElement>
-
getAnnotation
@Nonnull public AnnotationMirror getAnnotation()
- Specified by:
getAnnotation
in interfaceorg.revapi.java.spi.JavaAnnotationElement
-
getTypeEnvironment
@Nonnull public org.revapi.java.spi.TypeEnvironment getTypeEnvironment()
- Specified by:
getTypeEnvironment
in interfaceorg.revapi.java.spi.JavaElement
- Overrides:
getTypeEnvironment
in classAbstractJavaElement
-
compareTo
public int compareTo(@Nonnull org.revapi.java.spi.JavaElement o)
- Specified by:
compareTo
in interfaceComparable<org.revapi.java.spi.JavaElement>
-
getFullHumanReadableString
@Nonnull public String getFullHumanReadableString()
- Specified by:
getFullHumanReadableString
in interfaceorg.revapi.Element<org.revapi.java.spi.JavaElement>
- Overrides:
getFullHumanReadableString
in classorg.revapi.base.BaseElement<org.revapi.java.spi.JavaElement>
-
clone
public AnnotationElement clone()
- Overrides:
clone
in classorg.revapi.base.BaseElement<org.revapi.java.spi.JavaElement>
-
-