Package org.revapi.java.model
Class AbstractJavaElement
- java.lang.Object
-
- org.revapi.base.BaseElement<org.revapi.java.spi.JavaElement>
-
- org.revapi.java.model.AbstractJavaElement
-
- All Implemented Interfaces:
Cloneable
,Comparable<org.revapi.java.spi.JavaElement>
,org.revapi.Element<org.revapi.java.spi.JavaElement>
,org.revapi.java.spi.JavaElement
- Direct Known Subclasses:
AnnotationElement
,JavaElementBase
public abstract class AbstractJavaElement extends org.revapi.base.BaseElement<org.revapi.java.spi.JavaElement> implements org.revapi.java.spi.JavaElement
A common superclass forAnnotationElement
andJavaElementBase
to stuff that they share.
-
-
Field Summary
Fields Modifier and Type Field Description protected ProbingEnvironment
environment
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractJavaElement(ProbingEnvironment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.revapi.java.spi.TypeEnvironment
getTypeEnvironment()
protected org.revapi.Reference<org.revapi.java.spi.JavaElement>
newReference(org.revapi.java.spi.JavaElement target, org.revapi.Reference.Type<org.revapi.java.spi.JavaElement> type)
void
setArchive(org.revapi.Archive archive)
-
Methods inherited from class org.revapi.base.BaseElement
castThis, clone, getApi, getArchive, getChildren, getFullHumanReadableString, getParent, getReferencedElements, getReferencingElements, iterateOverChildren, newChildrenInstance, searchChildren, searchChildren, setParent
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.revapi.Element
as, getApi, getArchive, getChildren, getCumulativeReferencedElements, getCumulativeReferencingElements, getFullHumanReadableString, getParent, getReferencedElements, getReferencingElements, iterateOverChildren, searchChildren, searchChildren, setParent, stream
-
-
-
-
Field Detail
-
environment
protected final ProbingEnvironment environment
-
-
Constructor Detail
-
AbstractJavaElement
protected AbstractJavaElement(ProbingEnvironment environment)
-
-
Method Detail
-
newReference
protected org.revapi.Reference<org.revapi.java.spi.JavaElement> newReference(org.revapi.java.spi.JavaElement target, org.revapi.Reference.Type<org.revapi.java.spi.JavaElement> type)
- Overrides:
newReference
in classorg.revapi.base.BaseElement<org.revapi.java.spi.JavaElement>
-
getTypeEnvironment
@Nonnull public org.revapi.java.spi.TypeEnvironment getTypeEnvironment()
- Specified by:
getTypeEnvironment
in interfaceorg.revapi.java.spi.JavaElement
-
setArchive
public void setArchive(@Nullable org.revapi.Archive archive)
- Overrides:
setArchive
in classorg.revapi.base.BaseElement<org.revapi.java.spi.JavaElement>
-
-