public class TypeElement extends JavaElementBase<TypeElement,DeclaredType> implements org.revapi.java.spi.JavaTypeElement
element, environment, representation| Constructor and Description |
|---|
TypeElement(ProbingEnvironment env,
org.revapi.Archive archive,
String binaryName,
String canonicalName)
This is a helper constructor used only during probing the class files.
|
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 |
|---|---|
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, getArchive, getChildren, getComparableSignature, getDeclaringElement, getFullHumanReadableString, getModelRepresentation, getParent, getTypeEnvironment, hashCode, isInherited, setInherited, setParent, toStringgetDirectChildrenOfType, iterateOverChildren, newChildrenInstance, searchChildren, searchChildrenclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic TypeElement(ProbingEnvironment env, org.revapi.Archive archive, String binaryName, String canonicalName)
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 © 2016 Lukas Krejci. All Rights Reserved.