public class TypeElement
extends org.revapi.simple.SimpleElement
implements org.revapi.java.spi.JavaTypeElement
| Modifier and Type | Field and Description |
|---|---|
protected T |
element |
protected ProbingEnvironment |
environment |
| 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)
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() |
boolean |
equals(Object obj) |
org.revapi.API |
getApi() |
org.revapi.Archive |
getArchive() |
String |
getBinaryName() |
String |
getCanonicalName() |
SortedSet<org.revapi.java.spi.JavaElement> |
getChildren() |
protected String |
getComparableSignature() |
String |
getFullHumanReadableString() |
protected String |
getHumanReadableElementType() |
TypeElement |
getModelElement() |
org.revapi.java.spi.TypeEnvironment |
getTypeEnvironment() |
int |
hashCode() |
boolean |
isInnerClass() |
String |
toString() |
getDirectChildrenOfType, getParent, iterateOverChildren, newChildrenInstance, searchChildren, searchChildren, setParentprotected final ProbingEnvironment environment
protected T extends Element element
public 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)
env - the probing environmentelement - the model element to be representedpublic boolean isInnerClass()
@Nonnull public TypeElement getModelElement()
getModelElement in interface org.revapi.java.spi.JavaModelElementgetModelElement in interface org.revapi.java.spi.JavaTypeElementpublic String getBinaryName()
public String getCanonicalName()
public int compareTo(@Nonnull org.revapi.Element o)
compareTo in interface Comparable<org.revapi.Element>@Nonnull public String getFullHumanReadableString()
getFullHumanReadableString in interface org.revapi.Elementprotected String createComparableSignature()
@Nonnull public org.revapi.API getApi()
getApi in interface org.revapi.Element@Nullable public org.revapi.Archive getArchive()
getArchive in interface org.revapi.Element@Nonnull public org.revapi.java.spi.TypeEnvironment getTypeEnvironment()
getTypeEnvironment in interface org.revapi.java.spi.JavaElement@Nonnull public SortedSet<org.revapi.java.spi.JavaElement> getChildren()
getChildren in interface org.revapi.ElementgetChildren in class org.revapi.simple.SimpleElementprotected String getComparableSignature()
Copyright © 2016 Lukas Krejci. All Rights Reserved.