public class ExecutableElementImpl extends ElementImpl implements ExecutableElement
_binding, _env| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(ElementVisitor<R,P> v,
P p) |
protected AnnotationBinding[] |
getAnnotationBindings() |
AnnotationValue |
getDefaultValue() |
List<? extends Element> |
getEnclosedElements() |
Element |
getEnclosingElement() |
String |
getFileName()
Get the project-relative path to the source file that contains this element.
|
ElementKind |
getKind() |
Set<Modifier> |
getModifiers() |
List<? extends VariableElement> |
getParameters() |
TypeMirror |
getReceiverType() |
TypeMirror |
getReturnType() |
Name |
getSimpleName() |
List<? extends TypeMirror> |
getThrownTypes() |
List<? extends TypeParameterElement> |
getTypeParameters() |
boolean |
hides(Element hidden)
Subclassed by VariableElementImpl, TypeElementImpl, and ExecutableElementImpl.
|
boolean |
isDefault() |
boolean |
isVarArgs() |
boolean |
overrides(ExecutableElement overridden,
TypeElement type)
Return true if this method overrides
overridden in the context of type. |
asType, equals, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getPackedAnnotationBindings, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitasType, equals, getAnnotation, getAnnotationMirrors, hashCodegetAnnotationsByTypepublic <R,P> R accept(ElementVisitor<R,P> v, P p)
protected AnnotationBinding[] getAnnotationBindings()
getAnnotationBindings in class ElementImplpublic AnnotationValue getDefaultValue()
getDefaultValue in interface ExecutableElementpublic List<? extends Element> getEnclosedElements()
getEnclosedElements in interface Elementpublic Element getEnclosingElement()
getEnclosingElement in interface Elementpublic String getFileName()
IElementInfogetFileName in interface IElementInfogetFileName in class ElementImplpublic ElementKind getKind()
public Set<Modifier> getModifiers()
getModifiers in interface ElementgetModifiers in class ElementImplpublic List<? extends VariableElement> getParameters()
getParameters in interface ExecutableElementpublic TypeMirror getReturnType()
getReturnType in interface ExecutableElementpublic Name getSimpleName()
getSimpleName in interface ElementgetSimpleName in interface ExecutableElementgetSimpleName in class ElementImplpublic List<? extends TypeMirror> getThrownTypes()
getThrownTypes in interface ExecutableElementpublic List<? extends TypeParameterElement> getTypeParameters()
getTypeParameters in interface ExecutableElementgetTypeParameters in interface Parameterizablepublic boolean hides(Element hidden)
ElementImplhides in class ElementImplhiddenElements.hides(javax.lang.model.element.Element, javax.lang.model.element.Element)public boolean isVarArgs()
isVarArgs in interface ExecutableElementpublic boolean overrides(ExecutableElement overridden, TypeElement type)
overridden in the context of type. For
instance, consider
interface A { void f(); }
class B { void f() {} }
class C extends B implements I { }
In the context of B, B.f() does not override A.f(); they are unrelated. But in the context of
C, B.f() does override A.f(). That is, the copy of B.f() that C inherits overrides A.f().
This is equivalent to considering two questions: first, does C inherit B.f(); if so, does
the inherited C.f() override A.f(). If B.f() were private, for instance, then in the context
of C it would still not override A.f().public TypeMirror getReceiverType()
getReceiverType in interface ExecutableElementpublic boolean isDefault()
isDefault in interface ExecutableElementCopyright © 2015. All rights reserved.