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() . |
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, isInherited
getChildren, getTypeEnvironment
as, getApi, getArchive, getFullHumanReadableString, iterateOverChildren, searchChildren, searchChildren, setParent
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
default <R,P> R visitUseSites(UseSite.Visitor<R,P> visitor, P parameter)
boolean isInAPI()
boolean isInApiThroughUse()
Copyright © 2014-2020 Lukas Krejci. All Rights Reserved.