Comparable<org.revapi.Element>, org.revapi.Element, org.revapi.java.spi.JavaElement, org.revapi.java.spi.JavaModelElement, org.revapi.java.spi.JavaTypeElementMissingClassElementpublic class TypeElement extends JavaElementBase<TypeElement,DeclaredType> implements org.revapi.java.spi.JavaTypeElement
element, environment, representation| Constructor | 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 | Description |
|---|---|---|
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) |
as, getApi, getArchive, getChildren, getFullHumanReadableString, iterateOverChildren, searchChildren, searchChildren, setParentequals, getApi, getArchive, getChildren, getComparableSignature, getDeclaringElement, getFullHumanReadableString, getModelRepresentation, getParent, getTypeEnvironment, hashCode, isInherited, setInherited, setParent, toStringgetDeclaringElement, getModelRepresentation, visitUseSitespublic 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>Copyright © 2017 Lukas Krejci. All Rights Reserved.