Class ExecutableElementImpl
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.apt.model.ElementImpl
org.aspectj.org.eclipse.jdt.internal.compiler.apt.model.ExecutableElementImpl
- All Implemented Interfaces:
AnnotatedConstruct,Element,ExecutableElement,Parameterizable,IElementInfo
-
Field Summary
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.apt.model.ElementImpl
_binding, _env -
Method Summary
Modifier and TypeMethodDescription<R,P> R accept(ElementVisitor<R, P> v, P p) protected AnnotationBinding[]Get the project-relative path to the source file that contains this element.getKind()List<? extends VariableElement> List<? extends TypeMirror> List<? extends TypeParameterElement> booleanSubclassed by VariableElementImpl, TypeElementImpl, and ExecutableElementImpl.booleanbooleanbooleanoverrides(ExecutableElement overridden, TypeElement type) Return true if this method overridesoverriddenin the context oftype.Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.apt.model.ElementImpl
asType, equals, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getPackedAnnotationBindings, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.lang.model.element.Element
equals, getAnnotation, getAnnotationMirrors, getAnnotationsByType, hashCodeMethods inherited from interface javax.lang.model.element.ExecutableElement
asType
-
Method Details
-
accept
-
getAnnotationBindings
- Specified by:
getAnnotationBindingsin classElementImpl- Returns:
- the set of compiler annotation bindings on this element
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceExecutableElement
-
getEnclosedElements
- Specified by:
getEnclosedElementsin interfaceElement
-
getEnclosingElement
- Specified by:
getEnclosingElementin interfaceElement- Specified by:
getEnclosingElementin interfaceExecutableElement
-
getFileName
Description copied from interface:IElementInfoGet the project-relative path to the source file that contains this element. If the element is a PackageElement, the "source file" is package-info.java. If the element is not recognized or does not exist in the project for some reason, returns null.- Specified by:
getFileNamein interfaceIElementInfo- Overrides:
getFileNamein classElementImpl- Returns:
- the project-relative path, or null.
-
getKind
-
getModifiers
- Specified by:
getModifiersin interfaceElement- Overrides:
getModifiersin classElementImpl
-
getParameters
- Specified by:
getParametersin interfaceExecutableElement
-
getReturnType
- Specified by:
getReturnTypein interfaceExecutableElement
-
getSimpleName
- Specified by:
getSimpleNamein interfaceElement- Specified by:
getSimpleNamein interfaceExecutableElement- Overrides:
getSimpleNamein classElementImpl
-
getThrownTypes
- Specified by:
getThrownTypesin interfaceExecutableElement
-
getTypeParameters
- Specified by:
getTypeParametersin interfaceExecutableElement- Specified by:
getTypeParametersin interfaceParameterizable
-
hides
Description copied from class:ElementImplSubclassed by VariableElementImpl, TypeElementImpl, and ExecutableElementImpl. This base implementation suffices for other types.- Overrides:
hidesin classElementImpl- Returns:
- true if this element hides
hidden - See Also:
-
isVarArgs
public boolean isVarArgs()- Specified by:
isVarArgsin interfaceExecutableElement
-
overrides
Return true if this method overridesoverriddenin the context oftype. For instance, considerinterface 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().see jls3 8.4.8 Inheritance, Overriding, and Hiding
see jls3 9.4.1 Inheritance and Overriding
- See Also:
-
getReceiverType
- Specified by:
getReceiverTypein interfaceExecutableElement
-
isDefault
public boolean isDefault()- Specified by:
isDefaultin interfaceExecutableElement
-