Package org.revapi.java.spi
Interface JavaMethodParameterElement
-
- All Superinterfaces:
Comparable<JavaElement>
,org.revapi.Element<JavaElement>
,JavaElement
,JavaModelElement
public interface JavaMethodParameterElement extends JavaModelElement
Elements in the element forest that represent Java method parameters, will implement this interface.- Since:
- 0.1
- Author:
- Lukas Krejci
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VariableElement
getDeclaringElement()
For an inherited method for example, this will return the element in the super type that declares this method.int
getIndex()
JavaMethodElement
getParent()
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.revapi.Element
as, getApi, getArchive, getChildren, getCumulativeReferencedElements, getCumulativeReferencingElements, getFullHumanReadableString, getReferencedElements, getReferencingElements, iterateOverChildren, searchChildren, searchChildren, setParent, stream
-
Methods inherited from interface org.revapi.java.spi.JavaElement
getTypeEnvironment
-
Methods inherited from interface org.revapi.java.spi.JavaModelElement
getModelRepresentation, getParentType, isInherited
-
-
-
-
Method Detail
-
getDeclaringElement
VariableElement getDeclaringElement()
Description copied from interface:JavaModelElement
For an inherited method for example, this will return the element in the super type that declares this method.- Specified by:
getDeclaringElement
in interfaceJavaModelElement
- Returns:
- The element that represents the declaration this model element.
-
getIndex
int getIndex()
- Returns:
- the index of the method parameter amongst its siblings
-
getParent
@Nonnull JavaMethodElement getParent()
- Specified by:
getParent
in interfaceorg.revapi.Element<JavaElement>
- Specified by:
getParent
in interfaceJavaModelElement
-
-