This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.lang.model.type
interface ExecutableType

All Superinterfaces:
TypeMirror

public interface ExecutableType
extends TypeMirror

Represents the type of an executable. An executable is a method, constructor, or initializer.

The executable is represented as when viewed as a method (or constructor or initializer) of some reference type. If that reference type is parameterized, then its actual type arguments are substituted into any types returned by the methods of this interface.


Method Summary
 List

          Returns the types of this executable's formal parameters.
 TypeMirror

          Returns the return type of this executable.
 List

          Returns the exceptions and other throwables listed in this executable's clause.
 List

          Returns the type variables declared by the formal type parameters of this executable.
 
Methods inherited from class javax.lang.model.type.TypeMirror
accept, equals, getKind, hashCode, toString
 

Method Detail

getParameterTypes

public List getParameterTypes()
Returns the types of this executable's formal parameters.

Returns:
the types of this executable's formal parameters, or an empty list if there are none

getReturnType

public TypeMirror getReturnType()
Returns the return type of this executable. Returns a {@link NoType} with kind {@link TypeKind#VOID 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

getThrownTypes

public List getThrownTypes()
Returns the exceptions and other throwables listed in this executable's {@code throws} clause.

Returns:
the exceptions and other throwables listed in this executable's {@code throws} clause, or an empty list if there are none.

getTypeVariables

public List getTypeVariables()
Returns the type variables declared by the formal type parameters of this executable.

Returns:
the type variables declared by the formal type parameters, or an empty list if there are none


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.