public abstract class JavaElementBase<E extends Element,T extends TypeMirror> extends AbstractJavaElement implements org.revapi.java.spi.JavaModelElement
Modifier and Type | Field and Description |
---|---|
protected E |
element |
protected T |
representation |
archive, environment
Modifier and Type | Method and Description |
---|---|
JavaElementBase<E,T> |
clone() |
int |
compareTo(org.revapi.Element o) |
protected abstract String |
createComparableSignature() |
protected String |
createFullHumanReadableString() |
boolean |
equals(Object obj) |
org.revapi.API |
getApi() |
SortedSet<org.revapi.java.spi.JavaElement> |
getChildren() |
protected String |
getComparableSignature() |
E |
getDeclaringElement() |
String |
getFullHumanReadableString() |
protected abstract String |
getHumanReadableElementType() |
T |
getModelRepresentation() |
org.revapi.java.spi.JavaModelElement |
getParent() |
int |
hashCode() |
boolean |
isInherited() |
void |
setInherited(boolean inherited) |
void |
setParent(org.revapi.Element parent) |
String |
toString() |
getArchive, getTypeEnvironment, setArchive
getDirectChildrenOfType, iterateOverChildren, newChildrenInstance, searchChildren, searchChildren
protected final T extends TypeMirror representation
@Nullable public org.revapi.java.spi.JavaModelElement getParent()
getParent
in interface org.revapi.Element
getParent
in interface org.revapi.java.spi.JavaModelElement
getParent
in class org.revapi.simple.SimpleElement
public void setParent(@Nullable org.revapi.Element parent)
setParent
in interface org.revapi.Element
setParent
in class org.revapi.simple.SimpleElement
@Nonnull public org.revapi.API getApi()
getApi
in interface org.revapi.Element
public int compareTo(@Nonnull org.revapi.Element o)
compareTo
in interface Comparable<org.revapi.Element>
public E getDeclaringElement()
getDeclaringElement
in interface org.revapi.java.spi.JavaModelElement
public T getModelRepresentation()
getModelRepresentation
in interface org.revapi.java.spi.JavaModelElement
@Nonnull public SortedSet<org.revapi.java.spi.JavaElement> getChildren()
getChildren
in interface org.revapi.Element
getChildren
in interface org.revapi.java.spi.JavaElement
getChildren
in class AbstractJavaElement
public boolean isInherited()
isInherited
in interface org.revapi.java.spi.JavaModelElement
public void setInherited(boolean inherited)
@Nonnull public final String getFullHumanReadableString()
getFullHumanReadableString
in interface org.revapi.Element
getFullHumanReadableString
in class org.revapi.simple.SimpleElement
protected String createFullHumanReadableString()
public JavaElementBase<E,T> clone()
clone
in class org.revapi.simple.SimpleElement
protected String getComparableSignature()
protected abstract String createComparableSignature()
Copyright © 2014-2020 Lukas Krejci. All Rights Reserved.