public class TypeElement extends SimpleElement implements JavaTypeElement
| Modifier and Type | Field and Description |
|---|---|
protected T |
element |
protected ProbingEnvironment |
environment |
| Constructor and Description |
|---|
TypeElement(ProbingEnvironment env,
Archive archive,
String binaryName,
String canonicalName)
This is a helper constructor used only during probing the class files.
|
TypeElement(ProbingEnvironment env,
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(Element o) |
protected String |
createComparableSignature() |
boolean |
equals(Object obj) |
API |
getApi() |
Archive |
getArchive() |
String |
getBinaryName() |
String |
getCanonicalName() |
SortedSet<JavaElement> |
getChildren() |
protected String |
getComparableSignature() |
String |
getFullHumanReadableString() |
protected String |
getHumanReadableElementType() |
TypeElement |
getModelElement() |
TypeEnvironment |
getTypeEnvironment() |
int |
hashCode() |
boolean |
isInnerClass() |
String |
toString() |
getDirectChildrenOfType, getParent, iterateOverChildren, newChildrenInstance, searchChildren, searchChildren, setParentclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypeEnvironmentgetApi, getArchive, getChildren, getParent, iterateOverChildren, searchChildren, searchChildren, setParentprotected final ProbingEnvironment environment
public TypeElement(ProbingEnvironment env, Archive archive, String binaryName, String canonicalName)
env - probing environmentbinaryName - the binary name of the classcanonicalName - the canonical name of the classpublic TypeElement(ProbingEnvironment env, Archive archive, TypeElement element)
env - the probing environmentelement - the model element to be representedpublic boolean isInnerClass()
@Nonnull public TypeElement getModelElement()
getModelElement in interface JavaModelElementgetModelElement in interface JavaTypeElementpublic String getBinaryName()
public String getCanonicalName()
public int compareTo(@Nonnull Element o)
compareTo in interface Comparable<Element>@Nonnull public String getFullHumanReadableString()
getFullHumanReadableString in interface Elementprotected String createComparableSignature()
@Nullable public Archive getArchive()
getArchive in interface Element@Nonnull public TypeEnvironment getTypeEnvironment()
getTypeEnvironment in interface JavaElement@Nonnull public SortedSet<JavaElement> getChildren()
getChildren in interface ElementgetChildren in class SimpleElementprotected String getComparableSignature()
Copyright © 2015. All Rights Reserved.