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
getTypeEnvironment
as, getApi, getArchive, getChildren, getFullHumanReadableString, iterateOverChildren, searchChildren, searchChildren, setParent, stream
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<JavaElement>
getParent
in interface JavaModelElement
Copyright © 2014-2021 Lukas Krejci. All Rights Reserved.