public interface JavaTypeElement extends JavaModelElement
Modifier and Type | Method and Description |
---|---|
TypeElement |
getDeclaringElement()
For an inherited method for example, this will return the element in the super type that declares this method.
|
DeclaredType |
getModelRepresentation()
Note that this is distinctly different from
JavaModelElement.getDeclaringElement() . |
Map<UseSite.Type,Map<JavaTypeElement,Set<JavaModelElement>>> |
getUsedTypes()
This provides the types used by this type.
|
Set<UseSite> |
getUseSites() |
boolean |
isInAPI() |
boolean |
isInApiThroughUse() |
default <R,P> R |
visitUseSites(UseSite.Visitor<R,P> visitor,
P parameter)
Visits the uses of the provided type.
|
getParent, getParentType, isInherited
getTypeEnvironment
as, getApi, getArchive, getChildren, getFullHumanReadableString, iterateOverChildren, searchChildren, searchChildren, setParent, stream
compareTo
DeclaredType getModelRepresentation()
JavaModelElement
JavaModelElement.getDeclaringElement()
. This method returns a type mirror
describing an element on its position in the type hierarchy. I.e. if an inherited method with type parameters
resolved according to the class it is inherited "to".getModelRepresentation
in interface JavaModelElement
TypeElement getDeclaringElement()
JavaModelElement
getDeclaringElement
in interface JavaModelElement
Map<UseSite.Type,Map<JavaTypeElement,Set<JavaModelElement>>> getUsedTypes()
default <R,P> R visitUseSites(UseSite.Visitor<R,P> visitor, P parameter)
boolean isInAPI()
boolean isInApiThroughUse()
Copyright © 2014-2021 Lukas Krejci. All Rights Reserved.