public class TypeElement extends JavaElementBase<TypeElement,DeclaredType> implements org.revapi.java.spi.JavaTypeElement
element, representationarchive, environment| Constructor and Description |
|---|
TypeElement(ProbingEnvironment env,
org.revapi.Archive archive,
String binaryName,
String canonicalName)
This is a helper constructor used only in
MissingClassElement. |
TypeElement(ProbingEnvironment env,
org.revapi.Archive archive,
TypeElement element,
DeclaredType type)
This constructor is used under "normal working conditions" when the probing environment already has
the compilation infrastructure available (which is assumed since otherwise it would not be possible to obtain
instances of the javax.lang.model.element.TypeElement interface).
|
| Modifier and Type | Method and Description |
|---|---|
TypeElement |
clone() |
int |
compareTo(org.revapi.Element o) |
protected String |
createComparableSignature() |
protected String |
createFullHumanReadableString() |
String |
getBinaryName() |
String |
getCanonicalName() |
protected String |
getHumanReadableElementType() |
Set<org.revapi.java.spi.UseSite> |
getUseSites() |
boolean |
isInAPI() |
boolean |
isInApiThroughUse() |
void |
setInApi(boolean inApi) |
void |
setInApiThroughUse(boolean inApiThroughUse) |
void |
setRawUseSites(Set<ClassPathUseSite> rawUseSites) |
equals, getApi, getChildren, getComparableSignature, getDeclaringElement, getFullHumanReadableString, getModelRepresentation, getParent, hashCode, isInherited, setInherited, setParent, toStringgetArchive, getTypeEnvironment, setArchivegetDirectChildrenOfType, iterateOverChildren, newChildrenInstance, searchChildren, searchChildrenfinalize, getClass, notify, notifyAll, wait, wait, waitpublic TypeElement(ProbingEnvironment env, org.revapi.Archive archive, String binaryName, String canonicalName)
MissingClassElement. Inheritors using this constructor need
to make sure that they also override any and all methods that require a non-null element.env - probing environmentbinaryName - the binary name of the classcanonicalName - the canonical name of the classpublic TypeElement(ProbingEnvironment env, org.revapi.Archive archive, TypeElement element, DeclaredType type)
env - the probing environmentelement - the model element to be represented@Nonnull protected String getHumanReadableElementType()
getHumanReadableElementType in class JavaElementBase<TypeElement,DeclaredType>public String getBinaryName()
public String getCanonicalName()
public boolean isInAPI()
isInAPI in interface org.revapi.java.spi.JavaTypeElementpublic boolean isInApiThroughUse()
isInApiThroughUse in interface org.revapi.java.spi.JavaTypeElementpublic Set<org.revapi.java.spi.UseSite> getUseSites()
getUseSites in interface org.revapi.java.spi.JavaTypeElementpublic void setInApi(boolean inApi)
public void setInApiThroughUse(boolean inApiThroughUse)
public void setRawUseSites(Set<ClassPathUseSite> rawUseSites)
public int compareTo(@Nonnull org.revapi.Element o)
compareTo in interface Comparable<org.revapi.Element>compareTo in class JavaElementBase<TypeElement,DeclaredType>protected String createFullHumanReadableString()
createFullHumanReadableString in class JavaElementBase<TypeElement,DeclaredType>protected String createComparableSignature()
createComparableSignature in class JavaElementBase<TypeElement,DeclaredType>public TypeElement clone()
clone in class JavaElementBase<TypeElement,DeclaredType>Copyright © 2014-2018 Lukas Krejci. All Rights Reserved.