Interface JavaExecutable

    • Method Detail

      • getExceptions

        java.util.List<JavaClass> getExceptions()
        Equivalent of Executable.getExceptionTypes()
        Returns:
        a list of Exceptions, never null
      • getExceptionTypes

        java.util.List<JavaType> getExceptionTypes()
      • getParameterByName

        JavaParameter getParameterByName​(java.lang.String name)
        Parameters:
        name - the name of the parameter
        Returns:
        the JavaParameter matching the name, otherwise null
      • getParameters

        java.util.List<JavaParameter> getParameters()
        Equivalent of Executable.getParameterTypes(), where a JavaParameter also contains the original name if available.
        Returns:
        a list of JavaParameters, never null
      • getParameterTypes

        java.util.List<JavaType> getParameterTypes()
        Equivalent of Executable.getParameterTypes()
        Returns:
        a list of JavaParameters, never null
        Since:
        1.12
      • getParameterTypes

        java.util.List<JavaType> getParameterTypes​(boolean resolve)
        If a class inherits this method from a generic class or interface, you can use this method to get the resolved parameter types
        Parameters:
        resolve - true if the resolved types should be returned, otherwise false
        Returns:
        the parameter types
        Since:
        1.12
      • getSourceCode

        java.lang.String getSourceCode()
        Get the original source code of the body of this method.
        Returns:
        Code as string.
      • isVarArgs

        boolean isVarArgs()
        Equivalent of Executable.isVarArgs()
        Returns:
        true if the final parameter is a varArg, otherwise false
      • getCallSignature

        java.lang.String getCallSignature()