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, setArchivegetDirectChildrenOfType, iterateOverChildren, newChildrenInstance, searchChildren, searchChildrenprotected final T extends TypeMirror representation
@Nullable public org.revapi.java.spi.JavaModelElement getParent()
getParent in interface org.revapi.ElementgetParent in interface org.revapi.java.spi.JavaModelElementgetParent in class org.revapi.simple.SimpleElementpublic void setParent(@Nullable org.revapi.Element parent)
setParent in interface org.revapi.ElementsetParent in class org.revapi.simple.SimpleElement@Nonnull public org.revapi.API getApi()
getApi in interface org.revapi.Elementpublic int compareTo(@Nonnull org.revapi.Element o)
compareTo in interface Comparable<org.revapi.Element>public E getDeclaringElement()
getDeclaringElement in interface org.revapi.java.spi.JavaModelElementpublic T getModelRepresentation()
getModelRepresentation in interface org.revapi.java.spi.JavaModelElement@Nonnull public SortedSet<org.revapi.java.spi.JavaElement> getChildren()
getChildren in interface org.revapi.ElementgetChildren in interface org.revapi.java.spi.JavaElementgetChildren in class AbstractJavaElementpublic boolean isInherited()
isInherited in interface org.revapi.java.spi.JavaModelElementpublic void setInherited(boolean inherited)
@Nonnull public final String getFullHumanReadableString()
getFullHumanReadableString in interface org.revapi.ElementgetFullHumanReadableString in class org.revapi.simple.SimpleElementprotected String createFullHumanReadableString()
public JavaElementBase<E,T> clone()
clone in class org.revapi.simple.SimpleElementprotected String getComparableSignature()
protected abstract String createComparableSignature()
Copyright © 2014-2020 Lukas Krejci. All Rights Reserved.