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() |
isInherited
getChildren, getTypeEnvironment
as, getApi, getArchive, getFullHumanReadableString, iterateOverChildren, searchChildren, searchChildren, setParent
compareTo
ExecutableType 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
ExecutableElement getDeclaringElement()
JavaModelElement
getDeclaringElement
in interface JavaModelElement
@Nonnull JavaTypeElement getParent()
getParent
in interface org.revapi.Element
getParent
in interface JavaModelElement
Copyright © 2014-2020 Lukas Krejci. All Rights Reserved.