ExecutableTypepublic interface ExecutableType implements TypeMirrorRepresents 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. |
Methods Summary |
---|
public java.util.List | getParameterTypes()Returns the types of this executable's formal parameters.
| public javax.lang.model.type.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.
| public java.util.List | getThrownTypes()Returns the exceptions and other throwables listed in this
executable's {@code throws} clause.
| public java.util.List | getTypeVariables()Returns the type variables declared by the formal type parameters
of this executable.
|
|