javax.lang.model.element

Interface ExecutableElement

    • Method Detail

      • getTypeParameters

        List<? extends TypeParameterElement> getTypeParameters()
        Returns the formal type parameters of this executable in declaration order.
        Specified by:
        getTypeParameters in interface Parameterizable
        Returns:
        the formal type parameters, or an empty list if there are none
      • getReturnType

        TypeMirror getReturnType()
        Returns the return type of this executable. Returns a NoType with kind VOID if this executable is not a method, or is a method that does not return a value.
        Returns:
        the return type of this executable
      • getParameters

        List<? extends VariableElement> getParameters()
        Returns the formal parameters of this executable. They are returned in declaration order.
        Returns:
        the formal parameters, or an empty list if there are none
      • isVarArgs

        boolean isVarArgs()
        Returns true if this method or constructor accepts a variable number of arguments and returns false otherwise.
        Returns:
        true if this method or constructor accepts a variable number of arguments and false otherwise
      • getThrownTypes

        List<? extends TypeMirror> getThrownTypes()
        Returns the exceptions and other throwables listed in this method or constructor's throws clause in declaration order.
        Returns:
        the exceptions and other throwables listed in the throws clause, or an empty list if there are none
      • getDefaultValue

        AnnotationValue getDefaultValue()
        Returns the default value if this executable is an annotation type element. Returns null if this method is not an annotation type element, or if it is an annotation type element with no default value.
        Returns:
        the default value, or null if none
      • getSimpleName

        Name getSimpleName()
        Returns the simple name of a constructor, method, or initializer. For a constructor, the name "<init>" is returned, for a static initializer, the name "<clinit>" is returned, and for an anonymous class or instance initializer, an empty name is returned.
        Specified by:
        getSimpleName in interface Element
        Returns:
        the simple name of a constructor, method, or initializer

Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/lang/model/element/executableelement.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut