|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExecutableType
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.
ExecutableElement
Method Summary | |
---|---|
List<? extends TypeMirror> |
getParameterTypes()
Returns the types of this executable's formal parameters. |
TypeMirror |
getReturnType()
Returns the return type of this executable. |
List<? extends TypeMirror> |
getThrownTypes()
Returns the exceptions and other throwables listed in this executable's throws clause. |
List<? extends TypeVariable> |
getTypeVariables()
Returns the type variables declared by the formal type parameters of this executable. |
Methods inherited from interface javax.lang.model.type.TypeMirror |
---|
accept, equals, getKind, hashCode, toString |
Method Detail |
---|
List<? extends TypeVariable> getTypeVariables()
TypeMirror getReturnType()
NoType
with kind VOID
if this executable is not a method, or is a method that does not
return a value.
List<? extends TypeMirror> getParameterTypes()
List<? extends TypeMirror> getThrownTypes()
throws
clause.
throws
clause,
or an empty list if there are none.
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle and/or its affiliates. All rights reserved.