Package org.revapi.java.model
Class MethodElement
- java.lang.Object
-
- org.revapi.base.BaseElement<org.revapi.java.spi.JavaElement>
-
- org.revapi.java.model.AbstractJavaElement
-
- org.revapi.java.model.JavaElementBase<ExecutableElement,ExecutableType>
-
- org.revapi.java.model.MethodElement
-
- 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.JavaMethodElement
,org.revapi.java.spi.JavaModelElement
public final class MethodElement extends JavaElementBase<ExecutableElement,ExecutableType> implements org.revapi.java.spi.JavaMethodElement
- 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 MethodElement(ProbingEnvironment env, org.revapi.Archive archive, ExecutableElement element, ExecutableType type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodElement
clone()
protected String
createComparableSignature()
static String
createComparableSignature(ExecutableElement m, TypeMirror mType)
protected String
getHumanReadableElementType()
org.revapi.java.spi.JavaTypeElement
getParent()
boolean
isConstructor()
-
Methods inherited from class org.revapi.java.model.JavaElementBase
cloneUnder, compareTo, createFullHumanReadableString, equals, 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 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
-
-
-
-
Constructor Detail
-
MethodElement
public MethodElement(ProbingEnvironment env, org.revapi.Archive archive, ExecutableElement element, ExecutableType type)
-
-
Method Detail
-
createComparableSignature
public static String createComparableSignature(ExecutableElement m, TypeMirror mType)
-
getParent
@Nonnull public org.revapi.java.spi.JavaTypeElement getParent()
- Specified by:
getParent
in interfaceorg.revapi.Element<org.revapi.java.spi.JavaElement>
- Specified by:
getParent
in interfaceorg.revapi.java.spi.JavaMethodElement
- Specified by:
getParent
in interfaceorg.revapi.java.spi.JavaModelElement
- Overrides:
getParent
in classJavaElementBase<ExecutableElement,ExecutableType>
-
isConstructor
public boolean isConstructor()
-
getHumanReadableElementType
@Nonnull protected String getHumanReadableElementType()
- Specified by:
getHumanReadableElementType
in classJavaElementBase<ExecutableElement,ExecutableType>
-
createComparableSignature
protected String createComparableSignature()
- Specified by:
createComparableSignature
in classJavaElementBase<ExecutableElement,ExecutableType>
-
clone
public MethodElement clone()
- Overrides:
clone
in classJavaElementBase<ExecutableElement,ExecutableType>
-
-