< prev index next >

src/jdk.jdi/share/classes/com/sun/jdi/Method.java

Print this page

        

*** 47,69 **** * as specified in the declaration of this method. * <P> * This type name is always available even if * the type has not yet been created or loaded. * ! * @return a String containing the return type name. */ String returnTypeName(); /** * Returns the return type, * as specified in the declaration of this method. * <P> * Note: if the return type of this method is a reference type (class, * interface, or array) and it has not been created or loaded * by the declaring type's class loader - that is, ! * {@link TypeComponent#declaringType <CODE>declaringType()</CODE>} ! * <CODE>.classLoader()</CODE>, * then ClassNotLoadedException will be thrown. * Also, a reference type may have been loaded but not yet prepared, * in which case the type will be returned * but attempts to perform some operations on the returned type * (e.g. {@link ReferenceType#fields() fields()}) will throw --- 47,69 ---- * as specified in the declaration of this method. * <P> * This type name is always available even if * the type has not yet been created or loaded. * ! * @return a {@code String} containing the return type name. */ String returnTypeName(); /** * Returns the return type, * as specified in the declaration of this method. * <P> * Note: if the return type of this method is a reference type (class, * interface, or array) and it has not been created or loaded * by the declaring type's class loader - that is, ! * {@link TypeComponent#declaringType declaringType()} ! * {@code .classLoader()}, * then ClassNotLoadedException will be thrown. * Also, a reference type may have been loaded but not yet prepared, * in which case the type will be returned * but attempts to perform some operations on the returned type * (e.g. {@link ReferenceType#fields() fields()}) will throw
*** 91,101 **** * one List element for each parameter of this method. * Each element represents the type of a formal parameter * as specified at compile-time. * If the formal parameter was declared with an ellipsis, then * it is represented as an array of the type before the ellipsis. - * */ List<String> argumentTypeNames(); /** * Returns a list containing the type --- 91,100 ----
*** 103,114 **** * <P> * Note: if there is any parameter whose type * is a reference type (class, interface, or array) * and it has not been created or loaded * by the declaring type's class loader - that is, ! * {@link TypeComponent#declaringType <CODE>declaringType()</CODE>} ! * <CODE>.classLoader()</CODE>, * then ClassNotLoadedException will be thrown. * Also, a reference type may have been loaded but not yet prepared, * in which case the list will be returned * but attempts to perform some operations on the type * (e.g. {@link ReferenceType#fields() fields()}) will throw --- 102,113 ---- * <P> * Note: if there is any parameter whose type * is a reference type (class, interface, or array) * and it has not been created or loaded * by the declaring type's class loader - that is, ! * {@link TypeComponent#declaringType declaringType()} ! * {@code .classLoader()}, * then ClassNotLoadedException will be thrown. * Also, a reference type may have been loaded but not yet prepared, * in which case the list will be returned * but attempts to perform some operations on the type * (e.g. {@link ReferenceType#fields() fields()}) will throw
*** 130,214 **** List<Type> argumentTypes() throws ClassNotLoadedException; /** * Determine if this method is abstract. * ! * @return <code>true</code> if the method is declared abstract; ! * false otherwise. */ boolean isAbstract(); /** * Determine if this method is a default method * ! * @return <code>true</code> if the method is declared default; ! * false otherwise * * @since 1.8 */ default boolean isDefault() { throw new UnsupportedOperationException(); } /** * Determine if this method is synchronized. * ! * @return <code>true</code> if the method is declared synchronized; ! * false otherwise. */ boolean isSynchronized(); /** * Determine if this method is native. * ! * @return <code>true</code> if the method is declared native; ! * false otherwise. */ boolean isNative(); /** * Determine if this method accepts a variable number of arguments. * ! * @return <code>true</code> if the method accepts a variable number ! * of arguments, false otherwise. * * @since 1.5 */ boolean isVarArgs(); /** * Determine if this method is a bridge method. Bridge * methods are defined in * <cite>The Java&trade; Language Specification</cite>. * ! * @return <code>true</code> if the method is a bridge method, ! * false otherwise. * * @since 1.5 */ boolean isBridge(); /** * Determine if this method is a constructor. * ! * @return <code>true</code> if the method is a constructor; ! * false otherwise. */ boolean isConstructor(); /** * Determine if this method is a static initializer. * ! * @return <code>true</code> if the method is a static initializer; ! * false otherwise. */ boolean isStaticInitializer(); /** * Determine if this method is obsolete. * ! * @return <code>true</code> if this method has been made obsolete by a * {@link VirtualMachine#redefineClasses} operation. * * @since 1.4 */ boolean isObsolete(); --- 129,213 ---- List<Type> argumentTypes() throws ClassNotLoadedException; /** * Determine if this method is abstract. * ! * @return {@code true} if the method is declared abstract; ! * {@code false} otherwise. */ boolean isAbstract(); /** * Determine if this method is a default method * ! * @return {@code true} if the method is declared default; ! * {@code false} otherwise. * * @since 1.8 */ default boolean isDefault() { throw new UnsupportedOperationException(); } /** * Determine if this method is synchronized. * ! * @return {@code true} if the method is declared synchronized; ! * {@code false} otherwise. */ boolean isSynchronized(); /** * Determine if this method is native. * ! * @return {@code true} if the method is declared native; ! * {@code false} otherwise. */ boolean isNative(); /** * Determine if this method accepts a variable number of arguments. * ! * @return {@code true} if the method accepts a variable number ! * of arguments, {@code false} otherwise. * * @since 1.5 */ boolean isVarArgs(); /** * Determine if this method is a bridge method. Bridge * methods are defined in * <cite>The Java&trade; Language Specification</cite>. * ! * @return {@code true} if the method is a bridge method, ! * {@code false} otherwise. * * @since 1.5 */ boolean isBridge(); /** * Determine if this method is a constructor. * ! * @return {@code true} if the method is a constructor; ! * {@code false} otherwise. */ boolean isConstructor(); /** * Determine if this method is a static initializer. * ! * @return {@code true} if the method is a static initializer; ! * {@code false} otherwise. */ boolean isStaticInitializer(); /** * Determine if this method is obsolete. * ! * @return {@code true} if this method has been made obsolete by a * {@link VirtualMachine#redefineClasses} operation. * * @since 1.4 */ boolean isObsolete();
*** 216,226 **** /** * Returns a list containing a {@link Location} object for * each executable source line in this method. * <P> * This method is equivalent to ! * <code>allLineLocations(vm.getDefaultStratum(),null)</code> - * see {@link #allLineLocations(String,String)} * for more information. * * @return a List of all source line {@link Location} objects. * --- 215,225 ---- /** * Returns a list containing a {@link Location} object for * each executable source line in this method. * <P> * This method is equivalent to ! * {@code allLineLocations(vm.getDefaultStratum(),null)} - * see {@link #allLineLocations(String,String)} * for more information. * * @return a List of all source line {@link Location} objects. *
*** 250,269 **** * <P> * Returned list is for the specified <i>stratum</i> * (see {@link Location} for a description of strata). * * @param stratum The stratum to retrieve information from ! * or <code>null</code> for the {@link ReferenceType#defaultStratum()} * * @param sourceName Return locations only within this ! * source file or <code>null</code> to return locations. * * @return a List of all source line {@link Location} objects. * * @throws AbsentInformationException if there is no line * number information for this (non-native, non-abstract) ! * method. Or if <i>sourceName</i> is non-<code>null</code> * and source name information is not present. * * @since 1.4 */ List<Location> allLineLocations(String stratum, String sourceName) --- 249,268 ---- * <P> * Returned list is for the specified <i>stratum</i> * (see {@link Location} for a description of strata). * * @param stratum The stratum to retrieve information from ! * or {@code null} for the {@link ReferenceType#defaultStratum()} * * @param sourceName Return locations only within this ! * source file or {@code null} to return locations. * * @return a List of all source line {@link Location} objects. * * @throws AbsentInformationException if there is no line * number information for this (non-native, non-abstract) ! * method. Or if <i>sourceName</i> is non-{@code null} * and source name information is not present. * * @since 1.4 */ List<Location> allLineLocations(String stratum, String sourceName)
*** 272,283 **** /** * Returns a List containing all {@link Location} objects * that map to the given line number. * <P> * This method is equivalent to ! * <code>locationsOfLine(vm.getDefaultStratum(), null, ! * lineNumber)</code> - * see {@link * #locationsOfLine(java.lang.String,java.lang.String,int)} * for more information. * * @param lineNumber the line number --- 271,282 ---- /** * Returns a List containing all {@link Location} objects * that map to the given line number. * <P> * This method is equivalent to ! * {@code locationsOfLine(vm.getDefaultStratum(), null, ! * lineNumber)} - * see {@link * #locationsOfLine(java.lang.String,java.lang.String,int)} * for more information. * * @param lineNumber the line number
*** 318,328 **** * @return a List of {@link Location} objects that map to * the given line number. * * @throws AbsentInformationException if there is no line * number information for this method. ! * Or if <i>sourceName</i> is non-<code>null</code> * and source name information is not present. * * @since 1.4 */ List<Location> locationsOfLine(String stratum, String sourceName, --- 317,327 ---- * @return a List of {@link Location} objects that map to * the given line number. * * @throws AbsentInformationException if there is no line * number information for this method. ! * Or if <i>sourceName</i> is non-{@code null} * and source name information is not present. * * @since 1.4 */ List<Location> locationsOfLine(String stratum, String sourceName,
*** 434,442 **** boolean equals(Object obj); /** * Returns the hash code value for this Method. * ! * @return the integer hash code */ int hashCode(); } --- 433,441 ---- boolean equals(Object obj); /** * Returns the hash code value for this Method. * ! * @return the integer hash code. */ int hashCode(); }
< prev index next >