< prev index next >

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

Print this page




  75      *          or an empty list if there are none
  76      */
  77     List<? extends TypeMirror> getParameterTypes();
  78 
  79     /**
  80      * Returns the receiver type of this executable,
  81      * or {@link javax.lang.model.type.NoType NoType} with
  82      * kind {@link javax.lang.model.type.TypeKind#NONE NONE}
  83      * if the executable has no receiver type.
  84      *
  85      * An executable which is an instance method, or a constructor of an
  86      * inner class, has a receiver type derived from the {@linkplain
  87      * ExecutableElement#getEnclosingElement declaring type}.
  88      *
  89      * An executable which is a static method, or a constructor of a
  90      * non-inner class, or an initializer (static or instance), has no
  91      * receiver type.
  92      *
  93      * @return the receiver type of this executable
  94      * @since 1.8
  95      *
  96      * @jls 8.4 Method Declarations
  97      * @jls 8.4.1 Formal Parameters
  98      * @jls 8.8 Constructor Declarations
  99      */
 100     TypeMirror getReceiverType();
 101 
 102     /**
 103      * Returns the exceptions and other throwables listed in this
 104      * executable's {@code throws} clause.
 105      *
 106      * @return the exceptions and other throwables listed in this
 107      *          executable's {@code throws} clause,
 108      *          or an empty list if there are none.
 109      */
 110     List<? extends TypeMirror> getThrownTypes();
 111 }


  75      *          or an empty list if there are none
  76      */
  77     List<? extends TypeMirror> getParameterTypes();
  78 
  79     /**
  80      * Returns the receiver type of this executable,
  81      * or {@link javax.lang.model.type.NoType NoType} with
  82      * kind {@link javax.lang.model.type.TypeKind#NONE NONE}
  83      * if the executable has no receiver type.
  84      *
  85      * An executable which is an instance method, or a constructor of an
  86      * inner class, has a receiver type derived from the {@linkplain
  87      * ExecutableElement#getEnclosingElement declaring type}.
  88      *
  89      * An executable which is a static method, or a constructor of a
  90      * non-inner class, or an initializer (static or instance), has no
  91      * receiver type.
  92      *
  93      * @return the receiver type of this executable
  94      * @since 1.8




  95      */
  96     TypeMirror getReceiverType();
  97 
  98     /**
  99      * Returns the exceptions and other throwables listed in this
 100      * executable's {@code throws} clause.
 101      *
 102      * @return the exceptions and other throwables listed in this
 103      *          executable's {@code throws} clause,
 104      *          or an empty list if there are none.
 105      */
 106     List<? extends TypeMirror> getThrownTypes();
 107 }
< prev index next >