src/share/classes/javax/lang/model/type/ExecutableType.java

changeset 1645
97f6839673d6
parent 1644
40adaf938847
child 1647
578eb3dd111d
     1.1 --- a/src/share/classes/javax/lang/model/type/ExecutableType.java	Mon Mar 18 14:40:32 2013 -0700
     1.2 +++ b/src/share/classes/javax/lang/model/type/ExecutableType.java	Mon Mar 18 18:33:13 2013 -0700
     1.3 @@ -78,6 +78,25 @@
     1.4      List<? extends TypeMirror> getParameterTypes();
     1.5  
     1.6      /**
     1.7 +     * Returns the receiver type of this executable,
     1.8 +     * or {@link javax.lang.model.type.NoType NoType} with
     1.9 +     * kind {@link javax.lang.model.type.TypeKind#NONE NONE}
    1.10 +     * if the executable has no receiver type.
    1.11 +     *
    1.12 +     * An executable which is an instance method, or a constructor of an
    1.13 +     * inner class, has a receiver type derived from the {@linkplain
    1.14 +     * #getEnclosingElement declaring type}.
    1.15 +     *
    1.16 +     * An executable which is a static method, or a constructor of a
    1.17 +     * non-inner class, or an initializer (static or instance), has no
    1.18 +     * receiver type.
    1.19 +     *
    1.20 +     * @return the receiver type of this executable
    1.21 +     * @since 1.8
    1.22 +     */
    1.23 +    TypeMirror getReceiverType();
    1.24 +
    1.25 +    /**
    1.26       * Returns the exceptions and other throwables listed in this
    1.27       * executable's {@code throws} clause.
    1.28       *

mercurial