public interface JavaMethodElement extends JavaModelElement
| Modifier and Type | Method and Description |
|---|---|
ExecutableElement |
getDeclaringElement()
For an inherited method for example, this will return the element in the super type that declares this method.
|
ExecutableType |
getModelRepresentation()
Note that this is distinctly different from
JavaModelElement.getDeclaringElement(). |
JavaTypeElement |
getParent() |
isInheritedgetChildren, getTypeEnvironmentas, getApi, getArchive, getFullHumanReadableString, iterateOverChildren, searchChildren, searchChildren, setParentcompareToExecutableType 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 JavaModelElementExecutableElement getDeclaringElement()
JavaModelElementgetDeclaringElement in interface JavaModelElement@Nonnull JavaTypeElement getParent()
getParent in interface org.revapi.ElementgetParent in interface JavaModelElementCopyright © 2014-2020 Lukas Krejci. All Rights Reserved.