public class TypeElement extends JavaElementBase<TypeElement,DeclaredType> implements org.revapi.java.spi.JavaTypeElement
element, representation
environment
Constructor and Description |
---|
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.java.spi.JavaElement o) |
protected String |
createComparableSignature() |
protected String |
createFullHumanReadableString() |
String |
getBinaryName() |
String |
getCanonicalName() |
protected String |
getHumanReadableElementType() |
Map<org.revapi.java.spi.UseSite.Type,Map<org.revapi.java.spi.JavaTypeElement,Set<org.revapi.java.spi.JavaModelElement>>> |
getUsedTypes()
This provides the types used by this type.
|
Set<org.revapi.java.spi.UseSite> |
getUseSites() |
boolean |
isInAPI() |
boolean |
isInApiThroughUse() |
void |
setInApi(boolean inApi) |
void |
setInApiThroughUse(boolean inApiThroughUse) |
void |
setRawUsedTypes(Map<org.revapi.java.spi.UseSite.Type,Map<TypeElement,Set<UseSitePath>>> usedTypes) |
void |
setRawUseSites(Set<ClassPathUseSite> rawUseSites) |
cloneUnder, equals, getApi, getComparableSignature, getDeclaringElement, getFullHumanReadableString, getModelRepresentation, getParent, hashCode, isInherited, setInherited, setParent, toString
getTypeEnvironment, setArchive
castThis, getArchive, getChildren, iterateOverChildren, newChildrenInstance, searchChildren, searchChildren
finalize, getClass, notify, notifyAll, wait, wait, wait
getDeclaringElement, getModelRepresentation, visitUseSites
public 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.JavaTypeElement
public boolean isInApiThroughUse()
isInApiThroughUse
in interface org.revapi.java.spi.JavaTypeElement
public Set<org.revapi.java.spi.UseSite> getUseSites()
getUseSites
in interface org.revapi.java.spi.JavaTypeElement
public Map<org.revapi.java.spi.UseSite.Type,Map<org.revapi.java.spi.JavaTypeElement,Set<org.revapi.java.spi.JavaModelElement>>> getUsedTypes()
getUsedTypes
in interface org.revapi.java.spi.JavaTypeElement
public void setRawUsedTypes(Map<org.revapi.java.spi.UseSite.Type,Map<TypeElement,Set<UseSitePath>>> usedTypes)
public void setInApi(boolean inApi)
public void setInApiThroughUse(boolean inApiThroughUse)
public void setRawUseSites(Set<ClassPathUseSite> rawUseSites)
public int compareTo(@Nonnull org.revapi.java.spi.JavaElement o)
compareTo
in interface Comparable<org.revapi.java.spi.JavaElement>
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-2021 Lukas Krejci. All Rights Reserved.