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 |
environment| Modifier and Type | Method and Description |
|---|---|
JavaElementBase<E,T> |
clone() |
Optional<JavaElementBase<E,T>> |
cloneUnder(JavaElementBase<?,?> newParent)
Clones this element and tries to add it under the new parent.
|
int |
compareTo(org.revapi.java.spi.JavaElement o) |
protected abstract String |
createComparableSignature() |
protected String |
createFullHumanReadableString() |
boolean |
equals(Object obj) |
org.revapi.API |
getApi() |
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.java.spi.JavaElement parent) |
String |
toString() |
getTypeEnvironment, setArchivecastThis, getArchive, getChildren, iterateOverChildren, newChildrenInstance, searchChildren, searchChildrenprotected final T extends TypeMirror representation
@Nullable public org.revapi.java.spi.JavaModelElement getParent()
getParent in interface org.revapi.Element<org.revapi.java.spi.JavaElement>getParent in interface org.revapi.java.spi.JavaModelElementgetParent in class org.revapi.base.BaseElement<org.revapi.java.spi.JavaElement>public void setParent(@Nullable org.revapi.java.spi.JavaElement parent)
setParent in interface org.revapi.Element<org.revapi.java.spi.JavaElement>setParent in class org.revapi.base.BaseElement<org.revapi.java.spi.JavaElement>@Nonnull public org.revapi.API getApi()
getApi in interface org.revapi.Element<org.revapi.java.spi.JavaElement>getApi in class org.revapi.base.BaseElement<org.revapi.java.spi.JavaElement>public int compareTo(@Nonnull org.revapi.java.spi.JavaElement o)
compareTo in interface Comparable<org.revapi.java.spi.JavaElement>public E getDeclaringElement()
getDeclaringElement in interface org.revapi.java.spi.JavaModelElementpublic T getModelRepresentation()
getModelRepresentation in interface org.revapi.java.spi.JavaModelElementpublic boolean isInherited()
isInherited in interface org.revapi.java.spi.JavaModelElementpublic void setInherited(boolean inherited)
@Nonnull public final String getFullHumanReadableString()
getFullHumanReadableString in interface org.revapi.Element<org.revapi.java.spi.JavaElement>getFullHumanReadableString in class org.revapi.base.BaseElement<org.revapi.java.spi.JavaElement>protected String createFullHumanReadableString()
public JavaElementBase<E,T> clone()
clone in class org.revapi.base.BaseElement<org.revapi.java.spi.JavaElement>public Optional<JavaElementBase<E,T>> cloneUnder(JavaElementBase<?,?> newParent)
newParent - the parent to add the clone toprotected String getComparableSignature()
protected abstract String createComparableSignature()
Copyright © 2014-2021 Lukas Krejci. All Rights Reserved.