Package org.revapi.java.model
Class MethodParameterElement
- java.lang.Object
-
- org.revapi.base.BaseElement<org.revapi.java.spi.JavaElement>
-
- org.revapi.java.model.AbstractJavaElement
-
- org.revapi.java.model.JavaElementBase<VariableElement,TypeMirror>
-
- org.revapi.java.model.MethodParameterElement
-
- All Implemented Interfaces:
Cloneable
,Comparable<org.revapi.java.spi.JavaElement>
,org.revapi.Element<org.revapi.java.spi.JavaElement>
,org.revapi.java.spi.JavaElement
,org.revapi.java.spi.JavaMethodParameterElement
,org.revapi.java.spi.JavaModelElement
public final class MethodParameterElement extends JavaElementBase<VariableElement,TypeMirror> implements org.revapi.java.spi.JavaMethodParameterElement
- Since:
- 0.1
- Author:
- Lukas Krejci
-
-
Field Summary
-
Fields inherited from class org.revapi.java.model.JavaElementBase
element, representation
-
Fields inherited from class org.revapi.java.model.AbstractJavaElement
environment
-
-
Constructor Summary
Constructors Constructor Description MethodParameterElement(ProbingEnvironment env, org.revapi.Archive archive, VariableElement element, TypeMirror type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodParameterElement
clone()
int
compareTo(org.revapi.java.spi.JavaElement o)
protected String
createComparableSignature()
boolean
equals(Object obj)
protected String
getHumanReadableElementType()
int
getIndex()
org.revapi.java.spi.JavaMethodElement
getParent()
-
Methods inherited from class org.revapi.java.model.JavaElementBase
cloneUnder, createFullHumanReadableString, getApi, getComparableSignature, getDeclaringElement, getFullHumanReadableString, getModelRepresentation, hashCode, isInherited, lookupChildElement, setInherited, setParent, toString
-
Methods inherited from class org.revapi.java.model.AbstractJavaElement
getTypeEnvironment, newReference, setArchive
-
Methods inherited from class org.revapi.base.BaseElement
castThis, getArchive, getChildren, getReferencedElements, getReferencingElements, iterateOverChildren, newChildrenInstance, searchChildren, searchChildren
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.revapi.Element
as, getApi, getArchive, getChildren, getCumulativeReferencedElements, getCumulativeReferencingElements, getFullHumanReadableString, getReferencedElements, getReferencingElements, iterateOverChildren, searchChildren, searchChildren, setParent, stream
-
-
-
-
Constructor Detail
-
MethodParameterElement
public MethodParameterElement(ProbingEnvironment env, org.revapi.Archive archive, VariableElement element, TypeMirror type)
-
-
Method Detail
-
getParent
@Nonnull public org.revapi.java.spi.JavaMethodElement getParent()
- Specified by:
getParent
in interfaceorg.revapi.Element<org.revapi.java.spi.JavaElement>
- Specified by:
getParent
in interfaceorg.revapi.java.spi.JavaMethodParameterElement
- Specified by:
getParent
in interfaceorg.revapi.java.spi.JavaModelElement
- Overrides:
getParent
in classJavaElementBase<VariableElement,TypeMirror>
-
getIndex
public int getIndex()
- Specified by:
getIndex
in interfaceorg.revapi.java.spi.JavaMethodParameterElement
-
getHumanReadableElementType
@Nonnull protected String getHumanReadableElementType()
- Specified by:
getHumanReadableElementType
in classJavaElementBase<VariableElement,TypeMirror>
-
compareTo
public int compareTo(@Nonnull org.revapi.java.spi.JavaElement o)
- Specified by:
compareTo
in interfaceComparable<org.revapi.java.spi.JavaElement>
- Overrides:
compareTo
in classJavaElementBase<VariableElement,TypeMirror>
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classJavaElementBase<VariableElement,TypeMirror>
-
createComparableSignature
protected String createComparableSignature()
- Specified by:
createComparableSignature
in classJavaElementBase<VariableElement,TypeMirror>
-
clone
public MethodParameterElement clone()
- Overrides:
clone
in classJavaElementBase<VariableElement,TypeMirror>
-
-