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, isInheritedgetChildren, getTypeEnvironmentas, getApi, getArchive, getFullHumanReadableString, iterateOverChildren, searchChildren, searchChildren, setParentcompareToDeclaredType getModelRepresentation()
JavaModelElementJavaModelElement.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 JavaModelElementTypeElement getDeclaringElement()
JavaModelElementgetDeclaringElement in interface JavaModelElementdefault <R,P> R visitUseSites(UseSite.Visitor<R,P> visitor, P parameter)
boolean isInAPI()
boolean isInApiThroughUse()
Copyright © 2014-2018 Lukas Krejci. All Rights Reserved.