BlenderRev of New

BlenderRev generated at Tue Jul 19 12:42:58 2011
New generated at Tue Jul 19 12:42:26 2011
Old generated at Tue Jul 19 12:40:57 2011

java.lang.reflect (3 classes, 42 methods)

Constructor Executable Method

java.lang.reflect.Constructor (14 methods)

CLASS_COMMENT
getAnnotation(java.lang.Class)
getDeclaredAnnotations()
getDeclaringClass()
getExceptionTypes()
getGenericExceptionTypes()
getGenericParameterTypes()
getModifiers()
getName()
getParameterAnnotations()
getParameterTypes()
getTypeParameters()
isSynthetic()
isVarArgs()
toGenericString()

Constructor.CLASS_COMMENT

java.lang.reflect
Class Constructor<T>


 java.lang.Object
  extended by java.lang.reflect.AccessibleObject
      extended by java.lang.reflect.Executableextended by java.lang.reflect.Constructor<T>
Type Parameters:
T - the class in which the constructor is declared

public final class Constructor<T>
extends Executableextends java.lang.reflect.AccessibleObject
implements java.lang.reflect.GenericDeclaration, java.lang.reflect.Member

Constructor provides information about, and access to, a single constructor for a class.

Constructor permits widening conversions to occur when matching the actual parameters to newInstance() with the underlying constructor's formal parameters, but throws an IllegalArgumentException if a narrowing conversion would occur.

See Also:
Member , Class , Class.getConstructors() , Class.getConstructor(Class[]) , Class.getDeclaredConstructors()

java.lang.reflect
Class Constructor<T>

java.lang.Object
  extended by java.lang.reflect.AccessibleObject
      extended by java.lang.reflect.Constructor<T>
Type Parameters:
T - the class in which the constructor is declared

public final class Constructor<T>
extends java.lang.reflect.AccessibleObject
implements java.lang.reflect.GenericDeclaration, java.lang.reflect.Member

Constructor provides information about, and access to, a single constructor for a class.

Constructor permits widening conversions to occur when matching the actual parameters to newInstance() with the underlying constructor's formal parameters, but throws an IllegalArgumentException if a narrowing conversion would occur.

See Also:
Member, Class, Class.getConstructors(), Class.getConstructor(Class[]), Class.getDeclaredConstructors()

java.lang.reflect
Class Constructor<T>

java.lang.Object
  extended by java.lang.reflect.AccessibleObject
      extended by java.lang.reflect.Executable
          extended by java.lang.reflect.Constructor<T>
Type Parameters:
T - the class in which the constructor is declared

public final class Constructor<T>
extends Executable

Constructor provides information about, and access to, a single constructor for a class.

Constructor permits widening conversions to occur when matching the actual parameters to newInstance() with the underlying constructor's formal parameters, but throws an IllegalArgumentException if a narrowing conversion would occur.

See Also:
Member, Class, Class.getConstructors(), Class.getConstructor(Class[]), Class.getDeclaredConstructors()

Constructor.getAnnotation(java.lang.Class)

getAnnotation


 public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)

Specified by:
getAnnotation in interface java.lang.reflect.AnnotatedElement
Overrides:
getAnnotation getAnnotation in class Executable java.lang.reflect.AccessibleObject
Throws:
java.lang.NullPointerException
Since:
1.5

getAnnotation

public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
Specified by:
getAnnotation in interface java.lang.reflect.AnnotatedElement
Overrides:
getAnnotation in class java.lang.reflect.AccessibleObject
Throws:
java.lang.NullPointerException
Since:
1.5

getAnnotation

public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)

Specified by:
getAnnotation in interface java.lang.reflect.AnnotatedElement
Overrides:
getAnnotation in class Executable
Throws:
java.lang.NullPointerException
Since:
1.5

Constructor.getDeclaredAnnotations()

getDeclaredAnnotations


 public java.lang.annotation.Annotation[] getDeclaredAnnotations()

Specified by:
getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElement
Overrides:
getDeclaredAnnotations getDeclaredAnnotations in class Executable java.lang.reflect.AccessibleObject
Since:
1.5

getDeclaredAnnotations

public java.lang.annotation.Annotation[] getDeclaredAnnotations()
Specified by:
getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElement
Overrides:
getDeclaredAnnotations in class java.lang.reflect.AccessibleObject
Since:
1.5

getDeclaredAnnotations

public java.lang.annotation.Annotation[] getDeclaredAnnotations()

Specified by:
getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElement
Overrides:
getDeclaredAnnotations in class Executable
Since:
1.5

Constructor.getDeclaringClass()

getDeclaringClass


 public java.lang.Class<T> getDeclaringClass()
Returns the Class object representing the class or interface that declares the method constructor represented by this executable Constructor object.

Specified by:
getDeclaringClass in interface java.lang.reflect.Member
Specified by:
getDeclaringClass in class Executable

getDeclaringClass

public java.lang.Class<T> getDeclaringClass()
Returns the Class object representing the class that declares the constructor represented by this Constructor object.

Specified by:
getDeclaringClass in interface java.lang.reflect.Member

getDeclaringClass

public java.lang.Class<T> getDeclaringClass()
Returns the Class object representing the class or interface that declares the method represented by this executable object.

Specified by:
getDeclaringClass in interface java.lang.reflect.Member
Specified by:
getDeclaringClass in class Executable

Constructor.getExceptionTypes()

getExceptionTypes


 public java.lang.Class<?>[] getExceptionTypes()
Returns an array of Class objects that represent the types of exceptions declared to be thrown by the underlying executable constructor represented by this object. Returns an array of length 0 if the executable declares no exceptions in its Constructor object. Returns an array of length 0 if the constructor declares no exceptions in its throws clause.

Specified by:
getExceptionTypes in class Executable
Returns:
the exception types declared as being thrown by the executable constructor this object represents

getExceptionTypes

public java.lang.Class<?>[] getExceptionTypes()
Returns an array of Class objects that represent the types of exceptions declared to be thrown by the underlying constructor represented by this Constructor object. Returns an array of length 0 if the constructor declares no exceptions in its throws clause.

Returns:
the exception types declared as being thrown by the constructor this object represents

getExceptionTypes

public java.lang.Class<?>[] getExceptionTypes()
Returns an array of Class objects that represent the types of exceptions declared to be thrown by the underlying executable represented by this object. Returns an array of length 0 if the executable declares no exceptions in its throws clause.

Specified by:
getExceptionTypes in class Executable
Returns:
the exception types declared as being thrown by the executable this object represents

Constructor.getGenericExceptionTypes()

getGenericExceptionTypes


 public java.lang.reflect.Type[] getGenericExceptionTypes()
Returns an array of Type objects that represent the exceptions declared to be thrown by this executable object. Returns an array of length 0 if the underlying executable declares no exceptions in its Constructor object. Returns an array of length 0 if the underlying method declares no exceptions in its throws clause.

If an exception type is a type variable or a parameterized type, it is created. Otherwise, it is resolved.

Overrides:
getGenericExceptionTypes in class Executable
Returns:
an array of Types that represent the exception types thrown by the underlying method
Throws:
GenericSignatureFormatError - if the generic method signature does not conform to the format specified in The Java™ Virtual Machine Specification
java.lang.TypeNotPresentException - if the underlying method's throws clause refers to a non-existent type declaration
MalformedParameterizedTypeException - if the underlying method's throws clause refers to a parameterized type that cannot be instantiated for any reason
Since:
1.5

getGenericExceptionTypes

public java.lang.reflect.Type[] getGenericExceptionTypes()
Returns an array of Type objects that represent the exceptions declared to be thrown by this Constructor object. Returns an array of length 0 if the underlying method declares no exceptions in its throws clause.

If an exception type is a type variable or a parameterized type, it is created. Otherwise, it is resolved.

Returns:
an array of Types that represent the exception types thrown by the underlying method
Throws:
GenericSignatureFormatError - if the generic method signature does not conform to the format specified in The Java™ Virtual Machine Specification
java.lang.TypeNotPresentException - if the underlying method's throws clause refers to a non-existent type declaration
MalformedParameterizedTypeException - if the underlying method's throws clause refers to a parameterized type that cannot be instantiated for any reason
Since:
1.5

getGenericExceptionTypes

public java.lang.reflect.Type[] getGenericExceptionTypes()
Returns an array of Type objects that represent the exceptions declared to be thrown by this executable object. Returns an array of length 0 if the underlying executable declares no exceptions in its throws clause.

If an exception type is a type variable or a parameterized type, it is created. Otherwise, it is resolved.

Overrides:
getGenericExceptionTypes in class Executable
Returns:
an array of Types that represent the exception types thrown by the underlying method
Throws:
GenericSignatureFormatError - if the generic method signature does not conform to the format specified in The Java™ Virtual Machine Specification
java.lang.TypeNotPresentException - if the underlying method's throws clause refers to a non-existent type declaration
MalformedParameterizedTypeException - if the underlying method's throws clause refers to a parameterized type that cannot be instantiated for any reason
Since:
1.5

Constructor.getGenericParameterTypes()

getGenericParameterTypes


 public java.lang.reflect.Type[] getGenericParameterTypes()
Returns an array of Type objects that represent the formal parameter types, in declaration order, of the method represented by this executable Constructor object. Returns an array of length 0 if the underlying method takes no parameters.

If a formal parameter type is a parameterized type, the Type object returned for it must accurately reflect the actual type parameters used in the source code.

If a formal parameter type is a type variable or a parameterized type, it is created. Otherwise, it is resolved.

Overrides:
getGenericParameterTypes in class Executable
Returns:
an array of Type s that represent the formal parameter types of the underlying method, in declaration order
Throws:
GenericSignatureFormatError - if the generic method signature does not conform to the format specified in The Java™ Virtual Machine Specification
java.lang.TypeNotPresentException - if any of the parameter types of the underlying method refers to a non-existent type declaration
MalformedParameterizedTypeException - if any of the underlying method's parameter types refer to a parameterized type that cannot be instantiated for any reason
Since:
1.5

getGenericParameterTypes

public java.lang.reflect.Type[] getGenericParameterTypes()
Returns an array of Type objects that represent the formal parameter types, in declaration order, of the method represented by this Constructor object. Returns an array of length 0 if the underlying method takes no parameters.

If a formal parameter type is a parameterized type, the Type object returned for it must accurately reflect the actual type parameters used in the source code.

If a formal parameter type is a type variable or a parameterized type, it is created. Otherwise, it is resolved.

Returns:
an array of Types that represent the formal parameter types of the underlying method, in declaration order
Throws:
GenericSignatureFormatError - if the generic method signature does not conform to the format specified in The Java™ Virtual Machine Specification
java.lang.TypeNotPresentException - if any of the parameter types of the underlying method refers to a non-existent type declaration
MalformedParameterizedTypeException - if any of the underlying method's parameter types refer to a parameterized type that cannot be instantiated for any reason
Since:
1.5

getGenericParameterTypes

public java.lang.reflect.Type[] getGenericParameterTypes()
Returns an array of Type objects that represent the formal parameter types, in declaration order, of the method represented by this executable object. Returns an array of length 0 if the underlying method takes no parameters.

If a formal parameter type is a parameterized type, the Type object returned for it must accurately reflect the actual type parameters used in the source code.

If a formal parameter type is a type variable or a parameterized type, it is created. Otherwise, it is resolved.

Overrides:
getGenericParameterTypes in class Executable
Returns:
an array of Types that represent the formal parameter types of the underlying method, in declaration order
Throws:
GenericSignatureFormatError - if the generic method signature does not conform to the format specified in The Java™ Virtual Machine Specification
java.lang.TypeNotPresentException - if any of the parameter types of the underlying method refers to a non-existent type declaration
MalformedParameterizedTypeException - if any of the underlying method's parameter types refer to a parameterized type that cannot be instantiated for any reason
Since:
1.5

Constructor.getModifiers()

getModifiers


 public int getModifiers()
Returns the Java language modifiers for the executable represented by this object. Returns the Java language modifiers for the constructor represented by this Constructor object, as an integer. The Modifier class should be used to decode the modifiers.

Specified by:
getModifiers in interface java.lang.reflect.Member
Specified by: See Also:
getModifiers Modifier in class Executable

getModifiers

public int getModifiers()
Returns the Java language modifiers for the constructor represented by this Constructor object, as an integer. The Modifier class should be used to decode the modifiers.

Specified by:
getModifiers in interface java.lang.reflect.Member
See Also:
Modifier

getModifiers

public int getModifiers()
Returns the Java language modifiers for the executable represented by this object.

Specified by:
getModifiers in interface java.lang.reflect.Member
Specified by:
getModifiers in class Executable

Constructor.getName()

getName


 public java.lang.String getName()
Returns the name of this constructor, as a string. This is the binary name of the constructor's declaring class.

Specified by:
getName in interface java.lang.reflect.Member
Specified by:
getName in class Executable

getName

public java.lang.String getName()
Returns the name of this constructor, as a string. This is the binary name of the constructor's declaring class.

Specified by:
getName in interface java.lang.reflect.Member

getName

public java.lang.String getName()
Returns the name of this constructor, as a string. This is the binary name of the constructor's declaring class.

Specified by:
getName in interface java.lang.reflect.Member
Specified by:
getName in class Executable

Constructor.getParameterAnnotations()

getParameterAnnotations


 public java.lang.annotation.Annotation[][] getParameterAnnotations()
Returns an array of arrays that represent the annotations on the formal parameters, in declaration order, of the executable method represented by this Constructor object. (Returns an array of length zero if the underlying method is parameterless. If the executable method has one or more parameters, a nested array of length zero is returned for each parameter with no annotations.) The annotation objects contained in the returned arrays are serializable. The caller of this method is free to modify the returned arrays; it will have no effect on the arrays returned to other callers.

Specified by:
getParameterAnnotations in class Executable
Returns:
an array of arrays that represent the annotations on the formal parameters, in declaration order, of the exectuable method represented by this Constructor object
Since:
1.5

getParameterAnnotations

public java.lang.annotation.Annotation[][] getParameterAnnotations()
Returns an array of arrays that represent the annotations on the formal parameters, in declaration order, of the method represented by this Constructor object. (Returns an array of length zero if the underlying method is parameterless. If the method has one or more parameters, a nested array of length zero is returned for each parameter with no annotations.) The annotation objects contained in the returned arrays are serializable. The caller of this method is free to modify the returned arrays; it will have no effect on the arrays returned to other callers.

Returns:
an array of arrays that represent the annotations on the formal parameters, in declaration order, of the method represented by this Constructor object
Since:
1.5

getParameterAnnotations

public java.lang.annotation.Annotation[][] getParameterAnnotations()
Returns an array of arrays that represent the annotations on the formal parameters, in declaration order, of the executable represented by this object. (Returns an array of length zero if the underlying method is parameterless. If the executable has one or more parameters, a nested array of length zero is returned for each parameter with no annotations.) The annotation objects contained in the returned arrays are serializable. The caller of this method is free to modify the returned arrays; it will have no effect on the arrays returned to other callers.

Specified by:
getParameterAnnotations in class Executable
Returns:
an array of arrays that represent the annotations on the formal parameters, in declaration order, of the exectuable represented by this object
Since:
1.5

Constructor.getParameterTypes()

getParameterTypes


 public java.lang.Class<?>[] getParameterTypes()
Returns an array of Class objects that represent the formal parameter types, in declaration order, of the executable constructor represented by this Constructor object. Returns an array of length 0 if the underlying method constructor takes no parameters.

Specified by:
getParameterTypes in class Executable
Returns:
the parameter types for the method constructor this object represents

getParameterTypes

public java.lang.Class<?>[] getParameterTypes()
Returns an array of Class objects that represent the formal parameter types, in declaration order, of the constructor represented by this Constructor object. Returns an array of length 0 if the underlying constructor takes no parameters.

Returns:
the parameter types for the constructor this object represents

getParameterTypes

public java.lang.Class<?>[] getParameterTypes()
Returns an array of Class objects that represent the formal parameter types, in declaration order, of the executable represented by this object. Returns an array of length 0 if the underlying method takes no parameters.

Specified by:
getParameterTypes in class Executable
Returns:
the parameter types for the method this object represents

Constructor.getTypeParameters()

getTypeParameters


 public java.lang.reflect.TypeVariable<Constructor<T>>[] getTypeParameters()
Returns an array of TypeVariable objects that represent the type variables declared by the generic declaration represented by this GenericDeclaration object, in declaration order. Returns an array of length 0 if the underlying generic declaration declares no type variables.

Specified by:
getTypeParameters in interface java.lang.reflect.GenericDeclaration
Specified by:
getTypeParameters in class Executable
Returns:
an array of TypeVariable objects that represent the type variables declared by this generic declaration
Throws:
GenericSignatureFormatError - if the generic signature of this generic declaration does not conform to the format specified in The Java™ Virtual Machine Specification
Since:
1.5

getTypeParameters

public java.lang.reflect.TypeVariable<Constructor<T>>[] getTypeParameters()
Returns an array of TypeVariable objects that represent the type variables declared by the generic declaration represented by this GenericDeclaration object, in declaration order. Returns an array of length 0 if the underlying generic declaration declares no type variables.

Specified by:
getTypeParameters in interface java.lang.reflect.GenericDeclaration
Returns:
an array of TypeVariable objects that represent the type variables declared by this generic declaration
Throws:
GenericSignatureFormatError - if the generic signature of this generic declaration does not conform to the format specified in The Java™ Virtual Machine Specification
Since:
1.5

getTypeParameters

public java.lang.reflect.TypeVariable<Constructor<T>>[] getTypeParameters()
Returns an array of TypeVariable objects that represent the type variables declared by the generic declaration represented by this GenericDeclaration object, in declaration order. Returns an array of length 0 if the underlying generic declaration declares no type variables.

Specified by:
getTypeParameters in interface java.lang.reflect.GenericDeclaration
Specified by:
getTypeParameters in class Executable
Returns:
an array of TypeVariable objects that represent the type variables declared by this generic declaration
Throws:
GenericSignatureFormatError - if the generic signature of this generic declaration does not conform to the format specified in The Java™ Virtual Machine Specification
Since:
1.5

Constructor.isSynthetic()

isSynthetic


 public boolean isSynthetic()
Returns true if this executable constructor is a synthetic construct; constructor; returns false otherwise.

Specified by:
isSynthetic in interface java.lang.reflect.Member
Overrides:
isSynthetic in class Executable
Returns:
true if and only if this executable constructor is a synthetic construct constructor as defined by The Java™ Language Specification.
Since:
1.5

isSynthetic

public boolean isSynthetic()
Returns true if this constructor is a synthetic constructor; returns false otherwise.

Specified by:
isSynthetic in interface java.lang.reflect.Member
Returns:
true if and only if this constructor is a synthetic constructor as defined by The Java™ Language Specification.
Since:
1.5

isSynthetic

public boolean isSynthetic()
Returns true if this executable is a synthetic construct; returns false otherwise.

Specified by:
isSynthetic in interface java.lang.reflect.Member
Overrides:
isSynthetic in class Executable
Returns:
true if and only if this executable is a synthetic construct as defined by The Java™ Language Specification.
Since:
1.5

Constructor.isVarArgs()

isVarArgs


 public boolean isVarArgs()
Returns true if this executable constructor was declared to take a variable number of arguments; returns false otherwise.

Overrides:
isVarArgs in class Executable
Returns:
true if an only if this executable constructor was declared to take a variable number of arguments.
Since:
1.5

isVarArgs

public boolean isVarArgs()
Returns true if this constructor was declared to take a variable number of arguments; returns false otherwise.

Returns:
true if an only if this constructor was declared to take a variable number of arguments.
Since:
1.5

isVarArgs

public boolean isVarArgs()
Returns true if this executable was declared to take a variable number of arguments; returns false otherwise.

Overrides:
isVarArgs in class Executable
Returns:
true if an only if this executable was declared to take a variable number of arguments.
Since:
1.5

Constructor.toGenericString()

toGenericString


 public java.lang.String toGenericString()
Returns a string describing this Constructor , including type parameters. The string is formatted as the constructor access modifiers, if any, followed by an angle-bracketed comma separated list of the constructor's type parameters, if any, followed by the fully-qualified name of the declaring class, followed by a parenthesized, comma-separated list of the constructor's generic formal parameter types. If this constructor was declared to take a variable number of arguments, instead of denoting the last parameter as " Type [] ", it is denoted as " Type... ". A space is used to separate access modifiers from one another and from the type parameters or return type. If there are no type parameters, the type parameter list is elided; if the type parameter list is present, a space separates the list from the class name. If the constructor is declared to throw exceptions, the parameter list is followed by a space, followed by the word "throws " followed by a comma-separated list of the thrown exception types.

The only possible modifiers for constructors are the access modifiers public , protected or private. Only one of these may appear, or none if the constructor has default (package) access.

Specified by:
toGenericString in class Executable
Returns:
a string describing this Constructor , include type parameters
Since:
1.5

toGenericString

public java.lang.String toGenericString()
Returns a string describing this Constructor, including type parameters. The string is formatted as the constructor access modifiers, if any, followed by an angle-bracketed comma separated list of the constructor's type parameters, if any, followed by the fully-qualified name of the declaring class, followed by a parenthesized, comma-separated list of the constructor's generic formal parameter types. If this constructor was declared to take a variable number of arguments, instead of denoting the last parameter as "Type[]", it is denoted as "Type...". A space is used to separate access modifiers from one another and from the type parameters or return type. If there are no type parameters, the type parameter list is elided; if the type parameter list is present, a space separates the list from the class name. If the constructor is declared to throw exceptions, the parameter list is followed by a space, followed by the word "throws" followed by a comma-separated list of the thrown exception types.

The only possible modifiers for constructors are the access modifiers public, protected or private. Only one of these may appear, or none if the constructor has default (package) access.

Returns:
a string describing this Constructor, include type parameters
Since:
1.5

toGenericString

public java.lang.String toGenericString()
Returns a string describing this Constructor, including type parameters. The string is formatted as the constructor access modifiers, if any, followed by an angle-bracketed comma separated list of the constructor's type parameters, if any, followed by the fully-qualified name of the declaring class, followed by a parenthesized, comma-separated list of the constructor's generic formal parameter types. If this constructor was declared to take a variable number of arguments, instead of denoting the last parameter as "Type[]", it is denoted as "Type...". A space is used to separate access modifiers from one another and from the type parameters or return type. If there are no type parameters, the type parameter list is elided; if the type parameter list is present, a space separates the list from the class name. If the constructor is declared to throw exceptions, the parameter list is followed by a space, followed by the word "throws" followed by a comma-separated list of the thrown exception types.

The only possible modifiers for constructors are the access modifiers public, protected or private. Only one of these may appear, or none if the constructor has default (package) access.

Specified by:
toGenericString in class Executable
Returns:
a string describing this Constructor, include type parameters
Since:
1.5

java.lang.reflect.Executable (New) (14 methods)

CLASS_COMMENT
getAnnotation(java.lang.Class)
getDeclaredAnnotations()
getDeclaringClass()
getExceptionTypes()
getGenericExceptionTypes()
getGenericParameterTypes()
getModifiers()
getName()
getParameterAnnotations()
getParameterTypes()
getTypeParameters()
isSynthetic()
isVarArgs()
toGenericString()

Executable.CLASS_COMMENT (New)

java.lang.reflect
Class Executable

java.lang.Object
  extended by java.lang.reflect.AccessibleObject
      extended by java.lang.reflect.Executable

public abstract class Executable
extends java.lang.reflect.AccessibleObject
implements java.lang.reflect.Member, java.lang.reflect.GenericDeclaration

A shared superclass for the common functionality of Method and Constructor.

Since:
1.8

Executable.getAnnotation(java.lang.Class) (New)

getAnnotation

public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)

Specified by:
getAnnotation in interface java.lang.reflect.AnnotatedElement
Overrides:
getAnnotation in class java.lang.reflect.AccessibleObject
Throws:
java.lang.NullPointerException

Executable.getDeclaredAnnotations() (New)

getDeclaredAnnotations

public java.lang.annotation.Annotation[] getDeclaredAnnotations()

Specified by:
getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElement
Overrides:
getDeclaredAnnotations in class java.lang.reflect.AccessibleObject

Executable.getDeclaringClass() (New)

getDeclaringClass

public abstract java.lang.Class<?> getDeclaringClass()
Returns the Class object representing the class or interface that declares the method represented by this executable object.

Specified by:
getDeclaringClass in interface java.lang.reflect.Member

Executable.getExceptionTypes() (New)

getExceptionTypes

public abstract java.lang.Class<?>[] getExceptionTypes()
Returns an array of Class objects that represent the types of exceptions declared to be thrown by the underlying executable represented by this object. Returns an array of length 0 if the executable declares no exceptions in its throws clause.

Returns:
the exception types declared as being thrown by the executable this object represents

Executable.getGenericExceptionTypes() (New)

getGenericExceptionTypes

public java.lang.reflect.Type[] getGenericExceptionTypes()
Returns an array of Type objects that represent the exceptions declared to be thrown by this executable object. Returns an array of length 0 if the underlying executable declares no exceptions in its throws clause.

If an exception type is a type variable or a parameterized type, it is created. Otherwise, it is resolved.

Returns:
an array of Types that represent the exception types thrown by the underlying method
Throws:
GenericSignatureFormatError - if the generic method signature does not conform to the format specified in The Java™ Virtual Machine Specification
java.lang.TypeNotPresentException - if the underlying method's throws clause refers to a non-existent type declaration
MalformedParameterizedTypeException - if the underlying method's throws clause refers to a parameterized type that cannot be instantiated for any reason

Executable.getGenericParameterTypes() (New)

getGenericParameterTypes

public java.lang.reflect.Type[] getGenericParameterTypes()
Returns an array of Type objects that represent the formal parameter types, in declaration order, of the method represented by this executable object. Returns an array of length 0 if the underlying method takes no parameters.

If a formal parameter type is a parameterized type, the Type object returned for it must accurately reflect the actual type parameters used in the source code.

If a formal parameter type is a type variable or a parameterized type, it is created. Otherwise, it is resolved.

Returns:
an array of Types that represent the formal parameter types of the underlying method, in declaration order
Throws:
GenericSignatureFormatError - if the generic method signature does not conform to the format specified in The Java™ Virtual Machine Specification
java.lang.TypeNotPresentException - if any of the parameter types of the underlying method refers to a non-existent type declaration
MalformedParameterizedTypeException - if any of the underlying method's parameter types refer to a parameterized type that cannot be instantiated for any reason

Executable.getModifiers() (New)

getModifiers

public abstract int getModifiers()
Returns the Java language modifiers for the executable represented by this object.

Specified by:
getModifiers in interface java.lang.reflect.Member

Executable.getName() (New)

getName

public abstract java.lang.String getName()
Returns the name of the executable represented by this object.

Specified by:
getName in interface java.lang.reflect.Member

Executable.getParameterAnnotations() (New)

getParameterAnnotations

public abstract java.lang.annotation.Annotation[][] getParameterAnnotations()
Returns an array of arrays that represent the annotations on the formal parameters, in declaration order, of the executable represented by this object. (Returns an array of length zero if the underlying method is parameterless. If the executable has one or more parameters, a nested array of length zero is returned for each parameter with no annotations.) The annotation objects contained in the returned arrays are serializable. The caller of this method is free to modify the returned arrays; it will have no effect on the arrays returned to other callers.

Returns:
an array of arrays that represent the annotations on the formal parameters, in declaration order, of the exectuable represented by this object

Executable.getParameterTypes() (New)

getParameterTypes

public abstract java.lang.Class<?>[] getParameterTypes()
Returns an array of Class objects that represent the formal parameter types, in declaration order, of the executable represented by this object. Returns an array of length 0 if the underlying method takes no parameters.

Returns:
the parameter types for the method this object represents

Executable.getTypeParameters() (New)

getTypeParameters

public abstract java.lang.reflect.TypeVariable<?>[] getTypeParameters()
Returns an array of TypeVariable objects that represent the type variables declared by the generic declaration represented by this GenericDeclaration object, in declaration order. Returns an array of length 0 if the underlying generic declaration declares no type variables.

Specified by:
getTypeParameters in interface java.lang.reflect.GenericDeclaration
Returns:
an array of TypeVariable objects that represent the type variables declared by this generic declaration
Throws:
GenericSignatureFormatError - if the generic signature of this generic declaration does not conform to the format specified in The Java™ Virtual Machine Specification

Executable.isSynthetic() (New)

isSynthetic

public boolean isSynthetic()
Returns true if this executable is a synthetic construct; returns false otherwise.

Specified by:
isSynthetic in interface java.lang.reflect.Member
Returns:
true if and only if this executable is a synthetic construct as defined by The Java™ Language Specification.

Executable.isVarArgs() (New)

isVarArgs

public boolean isVarArgs()
Returns true if this executable was declared to take a variable number of arguments; returns false otherwise.

Returns:
true if an only if this executable was declared to take a variable number of arguments.

Executable.toGenericString() (New)

toGenericString

public abstract java.lang.String toGenericString()
Returns a string describing this Executable, including any type parameters.

java.lang.reflect.Method (14 methods)

CLASS_COMMENT
getAnnotation(java.lang.Class)
getDeclaredAnnotations()
getDeclaringClass()
getExceptionTypes()
getGenericExceptionTypes()
getGenericParameterTypes()
getModifiers()
getName()
getParameterAnnotations()
getParameterTypes()
getTypeParameters()
isSynthetic()
isVarArgs()
toGenericString()

Method.CLASS_COMMENT

java.lang.reflect
Class Method


 java.lang.Object
  extended by java.lang.reflect.AccessibleObject
      extended by java.lang.reflect.Executableextended by java.lang.reflect.Method

public final class Method
extends Executableextends java.lang.reflect.AccessibleObject
implements java.lang.reflect.GenericDeclaration, java.lang.reflect.Member

A Method provides information about, and access to, a single method on a class or interface. The reflected method may be a class method or an instance method (including an abstract method).

A Method permits widening conversions to occur when matching the actual parameters to invoke with the underlying method's formal parameters, but it throws an IllegalArgumentException if a narrowing conversion would occur.

See Also:
Member , Class , Class.getMethods() , Class.getMethod(String, Class[]) , Class.getDeclaredMethods() , Class.getDeclaredMethod(String, Class[])

java.lang.reflect
Class Method

java.lang.Object
  extended by java.lang.reflect.AccessibleObject
      extended by java.lang.reflect.Method

public final class Method
extends java.lang.reflect.AccessibleObject
implements java.lang.reflect.GenericDeclaration, java.lang.reflect.Member

A Method provides information about, and access to, a single method on a class or interface. The reflected method may be a class method or an instance method (including an abstract method).

A Method permits widening conversions to occur when matching the actual parameters to invoke with the underlying method's formal parameters, but it throws an IllegalArgumentException if a narrowing conversion would occur.

See Also:
Member, Class, Class.getMethods(), Class.getMethod(String, Class[]), Class.getDeclaredMethods(), Class.getDeclaredMethod(String, Class[])

java.lang.reflect
Class Method

java.lang.Object
  extended by java.lang.reflect.AccessibleObject
      extended by java.lang.reflect.Executable
          extended by java.lang.reflect.Method

public final class Method
extends Executable

A Method provides information about, and access to, a single method on a class or interface. The reflected method may be a class method or an instance method (including an abstract method).

A Method permits widening conversions to occur when matching the actual parameters to invoke with the underlying method's formal parameters, but it throws an IllegalArgumentException if a narrowing conversion would occur.

See Also:
Member, Class, Class.getMethods(), Class.getMethod(String, Class[]), Class.getDeclaredMethods(), Class.getDeclaredMethod(String, Class[])

Method.getAnnotation(java.lang.Class)

getAnnotation


 public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)

Specified by:
getAnnotation in interface java.lang.reflect.AnnotatedElement
Overrides:
getAnnotation getAnnotation in class Executable java.lang.reflect.AccessibleObject
Throws:
java.lang.NullPointerException
Since:
1.5

getAnnotation

public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
Specified by:
getAnnotation in interface java.lang.reflect.AnnotatedElement
Overrides:
getAnnotation in class java.lang.reflect.AccessibleObject
Throws:
java.lang.NullPointerException
Since:
1.5

getAnnotation

public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)

Specified by:
getAnnotation in interface java.lang.reflect.AnnotatedElement
Overrides:
getAnnotation in class Executable
Throws:
java.lang.NullPointerException
Since:
1.5

Method.getDeclaredAnnotations()

getDeclaredAnnotations


 public java.lang.annotation.Annotation[] getDeclaredAnnotations()

Specified by:
getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElement
Overrides:
getDeclaredAnnotations getDeclaredAnnotations in class Executable java.lang.reflect.AccessibleObject
Since:
1.5

getDeclaredAnnotations

public java.lang.annotation.Annotation[] getDeclaredAnnotations()
Specified by:
getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElement
Overrides:
getDeclaredAnnotations in class java.lang.reflect.AccessibleObject
Since:
1.5

getDeclaredAnnotations

public java.lang.annotation.Annotation[] getDeclaredAnnotations()

Specified by:
getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElement
Overrides:
getDeclaredAnnotations in class Executable
Since:
1.5

Method.getDeclaringClass()

getDeclaringClass


 public java.lang.Class<?> getDeclaringClass()
Returns the Class object representing the class or interface that declares the method represented by this executable Method object.

Specified by:
getDeclaringClass in interface java.lang.reflect.Member
Specified by:
getDeclaringClass in class Executable

getDeclaringClass

public java.lang.Class<?> getDeclaringClass()
Returns the Class object representing the class or interface that declares the method represented by this Method object.

Specified by:
getDeclaringClass in interface java.lang.reflect.Member

getDeclaringClass

public java.lang.Class<?> getDeclaringClass()
Returns the Class object representing the class or interface that declares the method represented by this executable object.

Specified by:
getDeclaringClass in interface java.lang.reflect.Member
Specified by:
getDeclaringClass in class Executable

Method.getExceptionTypes()

getExceptionTypes


 public java.lang.Class<?>[] getExceptionTypes()
Returns an array of Class objects that represent the types of the exceptions declared to be thrown by the underlying executable method represented by this object. Returns an array of length 0 if the executable declares no exceptions in its Method object. Returns an array of length 0 if the method declares no exceptions in its throws clause.

Specified by:
getExceptionTypes in class Executable
Returns:
the exception types declared as being thrown by the executable method this object represents

getExceptionTypes

public java.lang.Class<?>[] getExceptionTypes()
Returns an array of Class objects that represent the types of the exceptions declared to be thrown by the underlying method represented by this Method object. Returns an array of length 0 if the method declares no exceptions in its throws clause.

Returns:
the exception types declared as being thrown by the method this object represents

getExceptionTypes

public java.lang.Class<?>[] getExceptionTypes()
Returns an array of Class objects that represent the types of exceptions declared to be thrown by the underlying executable represented by this object. Returns an array of length 0 if the executable declares no exceptions in its throws clause.

Specified by:
getExceptionTypes in class Executable
Returns:
the exception types declared as being thrown by the executable this object represents

Method.getGenericExceptionTypes()

getGenericExceptionTypes


 public java.lang.reflect.Type[] getGenericExceptionTypes()
Returns an array of Type objects that represent the exceptions declared to be thrown by this executable object. Returns an array of length 0 if the underlying executable declares no exceptions in its Method object. Returns an array of length 0 if the underlying method declares no exceptions in its throws clause.

If an exception type is a type variable or a parameterized type, it is created. Otherwise, it is resolved.

Overrides:
getGenericExceptionTypes in class Executable
Returns:
an array of Types that represent the exception types thrown by the underlying method
Throws:
GenericSignatureFormatError - if the generic method signature does not conform to the format specified in The Java™ Virtual Machine Specification
java.lang.TypeNotPresentException - if the underlying method's throws clause refers to a non-existent type declaration
MalformedParameterizedTypeException - if the underlying method's throws clause refers to a parameterized type that cannot be instantiated for any reason
Since:
1.5

getGenericExceptionTypes

public java.lang.reflect.Type[] getGenericExceptionTypes()
Returns an array of Type objects that represent the exceptions declared to be thrown by this Method object. Returns an array of length 0 if the underlying method declares no exceptions in its throws clause.

If an exception type is a type variable or a parameterized type, it is created. Otherwise, it is resolved.

Returns:
an array of Types that represent the exception types thrown by the underlying method
Throws:
GenericSignatureFormatError - if the generic method signature does not conform to the format specified in The Java™ Virtual Machine Specification
java.lang.TypeNotPresentException - if the underlying method's throws clause refers to a non-existent type declaration
MalformedParameterizedTypeException - if the underlying method's throws clause refers to a parameterized type that cannot be instantiated for any reason
Since:
1.5

getGenericExceptionTypes

public java.lang.reflect.Type[] getGenericExceptionTypes()
Returns an array of Type objects that represent the exceptions declared to be thrown by this executable object. Returns an array of length 0 if the underlying executable declares no exceptions in its throws clause.

If an exception type is a type variable or a parameterized type, it is created. Otherwise, it is resolved.

Overrides:
getGenericExceptionTypes in class Executable
Returns:
an array of Types that represent the exception types thrown by the underlying method
Throws:
GenericSignatureFormatError - if the generic method signature does not conform to the format specified in The Java™ Virtual Machine Specification
java.lang.TypeNotPresentException - if the underlying method's throws clause refers to a non-existent type declaration
MalformedParameterizedTypeException - if the underlying method's throws clause refers to a parameterized type that cannot be instantiated for any reason
Since:
1.5

Method.getGenericParameterTypes()

getGenericParameterTypes


 public java.lang.reflect.Type[] getGenericParameterTypes()
Returns an array of Type objects that represent the formal parameter types, in declaration order, of the method represented by this executable Method object. Returns an array of length 0 if the underlying method takes no parameters.

If a formal parameter type is a parameterized type, the Type object returned for it must accurately reflect the actual type parameters used in the source code.

If a formal parameter type is a type variable or a parameterized type, it is created. Otherwise, it is resolved.

Overrides:
getGenericParameterTypes in class Executable
Returns:
an array of Type s Types that represent the formal parameter types of the underlying method, in declaration order
Throws:
GenericSignatureFormatError - if the generic method signature does not conform to the format specified in The Java™ Virtual Machine Specification
java.lang.TypeNotPresentException - if any of the parameter types of the underlying method refers to a non-existent type declaration
MalformedParameterizedTypeException - if any of the underlying method's parameter types refer to a parameterized type that cannot be instantiated for any reason
Since:
1.5

getGenericParameterTypes

public java.lang.reflect.Type[] getGenericParameterTypes()
Returns an array of Type objects that represent the formal parameter types, in declaration order, of the method represented by this Method object. Returns an array of length 0 if the underlying method takes no parameters.

If a formal parameter type is a parameterized type, the Type object returned for it must accurately reflect the actual type parameters used in the source code.

If a formal parameter type is a type variable or a parameterized type, it is created. Otherwise, it is resolved.

Returns:
an array of Types that represent the formal parameter types of the underlying method, in declaration order
Throws:
GenericSignatureFormatError - if the generic method signature does not conform to the format specified in The Java™ Virtual Machine Specification
java.lang.TypeNotPresentException - if any of the parameter types of the underlying method refers to a non-existent type declaration
MalformedParameterizedTypeException - if any of the underlying method's parameter types refer to a parameterized type that cannot be instantiated for any reason
Since:
1.5

getGenericParameterTypes

public java.lang.reflect.Type[] getGenericParameterTypes()
Returns an array of Type objects that represent the formal parameter types, in declaration order, of the method represented by this executable object. Returns an array of length 0 if the underlying method takes no parameters.

If a formal parameter type is a parameterized type, the Type object returned for it must accurately reflect the actual type parameters used in the source code.

If a formal parameter type is a type variable or a parameterized type, it is created. Otherwise, it is resolved.

Overrides:
getGenericParameterTypes in class Executable
Returns:
an array of Types that represent the formal parameter types of the underlying method, in declaration order
Throws:
GenericSignatureFormatError - if the generic method signature does not conform to the format specified in The Java™ Virtual Machine Specification
java.lang.TypeNotPresentException - if any of the parameter types of the underlying method refers to a non-existent type declaration
MalformedParameterizedTypeException - if any of the underlying method's parameter types refer to a parameterized type that cannot be instantiated for any reason
Since:
1.5

Method.getModifiers()

getModifiers


 public int getModifiers()
Returns the Java language modifiers for the executable represented by this object. Returns the Java language modifiers for the method represented by this Method object, as an integer. The Modifier class should be used to decode the modifiers.

Specified by:
getModifiers in interface java.lang.reflect.Member
Specified by: See Also:
getModifiers Modifier in class Executable

getModifiers

public int getModifiers()
Returns the Java language modifiers for the method represented by this Method object, as an integer. The Modifier class should be used to decode the modifiers.

Specified by:
getModifiers in interface java.lang.reflect.Member
See Also:
Modifier

getModifiers

public int getModifiers()
Returns the Java language modifiers for the executable represented by this object.

Specified by:
getModifiers in interface java.lang.reflect.Member
Specified by:
getModifiers in class Executable

Method.getName()

getName


 public java.lang.String getName()
Returns the name of the method represented by this Method object, as a String.

Specified by:
getName in interface java.lang.reflect.Member
Specified by:
getName in class Executable

getName

public java.lang.String getName()
Returns the name of the method represented by this Method object, as a String.

Specified by:
getName in interface java.lang.reflect.Member

getName

public java.lang.String getName()
Returns the name of the method represented by this Method object, as a String.

Specified by:
getName in interface java.lang.reflect.Member
Specified by:
getName in class Executable

Method.getParameterAnnotations()

getParameterAnnotations


 public java.lang.annotation.Annotation[][] getParameterAnnotations()
Returns an array of arrays that represent the annotations on the formal parameters, in declaration order, of the executable method represented by this Method object. (Returns an array of length zero if the underlying method is parameterless. If the executable method has one or more parameters, a nested array of length zero is returned for each parameter with no annotations.) The annotation objects contained in the returned arrays are serializable. The caller of this method is free to modify the returned arrays; it will have no effect on the arrays returned to other callers.

Specified by:
getParameterAnnotations in class Executable
Returns:
an array of arrays that represent the annotations on the formal parameters, in declaration order, of the exectuable method represented by this Method object
Since:
1.5

getParameterAnnotations

public java.lang.annotation.Annotation[][] getParameterAnnotations()
Returns an array of arrays that represent the annotations on the formal parameters, in declaration order, of the method represented by this Method object. (Returns an array of length zero if the underlying method is parameterless. If the method has one or more parameters, a nested array of length zero is returned for each parameter with no annotations.) The annotation objects contained in the returned arrays are serializable. The caller of this method is free to modify the returned arrays; it will have no effect on the arrays returned to other callers.

Returns:
an array of arrays that represent the annotations on the formal parameters, in declaration order, of the method represented by this Method object
Since:
1.5

getParameterAnnotations

public java.lang.annotation.Annotation[][] getParameterAnnotations()
Returns an array of arrays that represent the annotations on the formal parameters, in declaration order, of the executable represented by this object. (Returns an array of length zero if the underlying method is parameterless. If the executable has one or more parameters, a nested array of length zero is returned for each parameter with no annotations.) The annotation objects contained in the returned arrays are serializable. The caller of this method is free to modify the returned arrays; it will have no effect on the arrays returned to other callers.

Specified by:
getParameterAnnotations in class Executable
Returns:
an array of arrays that represent the annotations on the formal parameters, in declaration order, of the exectuable represented by this object
Since:
1.5

Method.getParameterTypes()

getParameterTypes


 public java.lang.Class<?>[] getParameterTypes()
Returns an array of Class objects that represent the formal parameter types, in declaration order, of the executable method represented by this Method object. Returns an array of length 0 if the underlying method takes no parameters.

Specified by:
getParameterTypes in class Executable
Returns:
the parameter types for the method this object represents

getParameterTypes

public java.lang.Class<?>[] getParameterTypes()
Returns an array of Class objects that represent the formal parameter types, in declaration order, of the method represented by this Method object. Returns an array of length 0 if the underlying method takes no parameters.

Returns:
the parameter types for the method this object represents

getParameterTypes

public java.lang.Class<?>[] getParameterTypes()
Returns an array of Class objects that represent the formal parameter types, in declaration order, of the executable represented by this object. Returns an array of length 0 if the underlying method takes no parameters.

Specified by:
getParameterTypes in class Executable
Returns:
the parameter types for the method this object represents

Method.getTypeParameters()

getTypeParameters


 public java.lang.reflect.TypeVariable<Method>[] getTypeParameters()
Returns an array of TypeVariable objects that represent the type variables declared by the generic declaration represented by this GenericDeclaration object, in declaration order. Returns an array of length 0 if the underlying generic declaration declares no type variables.

Specified by:
getTypeParameters in interface java.lang.reflect.GenericDeclaration
Specified by:
getTypeParameters in class Executable
Returns:
an array of TypeVariable objects that represent the type variables declared by this generic declaration
Throws:
GenericSignatureFormatError - if the generic signature of this generic declaration does not conform to the format specified in The Java™ Virtual Machine Specification
Since:
1.5

getTypeParameters

public java.lang.reflect.TypeVariable<Method>[] getTypeParameters()
Returns an array of TypeVariable objects that represent the type variables declared by the generic declaration represented by this GenericDeclaration object, in declaration order. Returns an array of length 0 if the underlying generic declaration declares no type variables.

Specified by:
getTypeParameters in interface java.lang.reflect.GenericDeclaration
Returns:
an array of TypeVariable objects that represent the type variables declared by this generic declaration
Throws:
GenericSignatureFormatError - if the generic signature of this generic declaration does not conform to the format specified in The Java™ Virtual Machine Specification
Since:
1.5

getTypeParameters

public java.lang.reflect.TypeVariable<Method>[] getTypeParameters()
Returns an array of TypeVariable objects that represent the type variables declared by the generic declaration represented by this GenericDeclaration object, in declaration order. Returns an array of length 0 if the underlying generic declaration declares no type variables.

Specified by:
getTypeParameters in interface java.lang.reflect.GenericDeclaration
Specified by:
getTypeParameters in class Executable
Returns:
an array of TypeVariable objects that represent the type variables declared by this generic declaration
Throws:
GenericSignatureFormatError - if the generic signature of this generic declaration does not conform to the format specified in The Java™ Virtual Machine Specification
Since:
1.5

Method.isSynthetic()

isSynthetic


 public boolean isSynthetic()
Returns true if this executable method is a synthetic construct; method; returns false otherwise.

Specified by:
isSynthetic in interface java.lang.reflect.Member
Overrides:
isSynthetic in class Executable
Returns:
true if and only if this executable method is a synthetic construct method as defined by The Java™ the Java Language Specification . Specification.
Since:
1.5

isSynthetic

public boolean isSynthetic()
Returns true if this method is a synthetic method; returns false otherwise.

Specified by:
isSynthetic in interface java.lang.reflect.Member
Returns:
true if and only if this method is a synthetic method as defined by the Java Language Specification.
Since:
1.5

isSynthetic

public boolean isSynthetic()
Returns true if this executable is a synthetic construct; returns false otherwise.

Specified by:
isSynthetic in interface java.lang.reflect.Member
Overrides:
isSynthetic in class Executable
Returns:
true if and only if this executable is a synthetic construct as defined by The Java™ Language Specification.
Since:
1.5

Method.isVarArgs()

isVarArgs


 public boolean isVarArgs()
Returns true if this executable method was declared to take a variable number of arguments; returns false otherwise.

Overrides:
isVarArgs in class Executable
Returns:
true if an only if this executable method was declared to take a variable number of arguments.
Since:
1.5

isVarArgs

public boolean isVarArgs()
Returns true if this method was declared to take a variable number of arguments; returns false otherwise.

Returns:
true if an only if this method was declared to take a variable number of arguments.
Since:
1.5

isVarArgs

public boolean isVarArgs()
Returns true if this executable was declared to take a variable number of arguments; returns false otherwise.

Overrides:
isVarArgs in class Executable
Returns:
true if an only if this executable was declared to take a variable number of arguments.
Since:
1.5

Method.toGenericString()

toGenericString


 public java.lang.String toGenericString()
Returns a string describing this Method , including type parameters. The string is formatted as the method access modifiers, if any, followed by an angle-bracketed comma-separated list of the method's type parameters, if any, followed by the method's generic return type, followed by a space, followed by the class declaring the method, followed by a period, followed by the method name, followed by a parenthesized, comma-separated list of the method's generic formal parameter types. If this method was declared to take a variable number of arguments, instead of denoting the last parameter as " Type [] ", it is denoted as " Type... ". A space is used to separate access modifiers from one another and from the type parameters or return type. If there are no type parameters, the type parameter list is elided; if the type parameter list is present, a space separates the list from the class name. If the method is declared to throw exceptions, the parameter list is followed by a space, followed by the word throws followed by a comma-separated list of the generic thrown exception types. If there are no type parameters, the type parameter list is elided.

The access modifiers are placed in canonical order as specified by "The Java Language Specification". This is public , protected or private first, and then other modifiers in the following order: abstract , static , final , synchronized , native , strictfp.

Specified by:
toGenericString in class Executable
Returns:
a string describing this Method , include type parameters
Since:
1.5

toGenericString

public java.lang.String toGenericString()
Returns a string describing this Method, including type parameters. The string is formatted as the method access modifiers, if any, followed by an angle-bracketed comma-separated list of the method's type parameters, if any, followed by the method's generic return type, followed by a space, followed by the class declaring the method, followed by a period, followed by the method name, followed by a parenthesized, comma-separated list of the method's generic formal parameter types. If this method was declared to take a variable number of arguments, instead of denoting the last parameter as "Type[]", it is denoted as "Type...". A space is used to separate access modifiers from one another and from the type parameters or return type. If there are no type parameters, the type parameter list is elided; if the type parameter list is present, a space separates the list from the class name. If the method is declared to throw exceptions, the parameter list is followed by a space, followed by the word throws followed by a comma-separated list of the generic thrown exception types. If there are no type parameters, the type parameter list is elided.

The access modifiers are placed in canonical order as specified by "The Java Language Specification". This is public, protected or private first, and then other modifiers in the following order: abstract, static, final, synchronized, native, strictfp.

Returns:
a string describing this Method, include type parameters
Since:
1.5

toGenericString

public java.lang.String toGenericString()
Returns a string describing this Method, including type parameters. The string is formatted as the method access modifiers, if any, followed by an angle-bracketed comma-separated list of the method's type parameters, if any, followed by the method's generic return type, followed by a space, followed by the class declaring the method, followed by a period, followed by the method name, followed by a parenthesized, comma-separated list of the method's generic formal parameter types. If this method was declared to take a variable number of arguments, instead of denoting the last parameter as "Type[]", it is denoted as "Type...". A space is used to separate access modifiers from one another and from the type parameters or return type. If there are no type parameters, the type parameter list is elided; if the type parameter list is present, a space separates the list from the class name. If the method is declared to throw exceptions, the parameter list is followed by a space, followed by the word throws followed by a comma-separated list of the generic thrown exception types. If there are no type parameters, the type parameter list is elided.

The access modifiers are placed in canonical order as specified by "The Java Language Specification". This is public, protected or private first, and then other modifiers in the following order: abstract, static, final, synchronized, native, strictfp.

Specified by:
toGenericString in class Executable
Returns:
a string describing this Method, include type parameters
Since:
1.5