Top Inners Fields Constructors Methods
com.sun.beans.introspect

pack-priv final Class MethodInfo

extends Object
Class Inheritance
Imports
java.io.Closeable, .Externalizable, .Serializable, java.lang.reflect.Method, .Modifier, .Type, java.util.ArrayList, .Arrays, .Collections, .Comparator, .List, .Set, com.sun.beans.TypeResolver, com.sun.beans.finder.MethodFinder

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
MethodInfo.MethodOrder

A comparator that defines a total order so that methods have the same name and identical signatures appear next to each others.

Field Summary

Modifier and TypeField and Description
pack-priv static final Set<Class<?>>
pack-priv final Method
pack-priv final Class<?>

Constructor Summary

AccessConstructor and Description
pack-priv
MethodInfo(Method method, Class<?> type)

pack-priv
MethodInfo(Method method, Type type)

Method Summary

Modifier and TypeMethod and Description
private static List<Method>
pack-priv static List<Method>
get(Class<?> type)

pack-priv boolean
isThrow(Class<?> exception)

pack-priv static Class<?>
resolve(Method method, Type type)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

IGNORABLE_INTERFACESback to summary
pack-priv static final Set<Class<?>> IGNORABLE_INTERFACES
methodback to summary
pack-priv final Method method
typeback to summary
pack-priv final Class<?> type

Constructor Detail

MethodInfoback to summary
pack-priv MethodInfo(Method method, Class<?> type)
MethodInfoback to summary
pack-priv MethodInfo(Method method, Type type)

Method Detail

createIfNeededback to summary
private static List<Method> createIfNeeded(List<Method> list)
getback to summary
pack-priv static List<Method> get(Class<?> type)
isThrowback to summary
pack-priv boolean isThrow(Class<?> exception)
resolveback to summary
pack-priv static Class<?> resolve(Method method, Type type)
com.sun.beans.introspect back to summary

private final Class MethodInfo.MethodOrder

extends Object
implements Comparator<Method>
Class Inheritance
All Implemented Interfaces
java.util.Comparator

A comparator that defines a total order so that methods have the same name and identical signatures appear next to each others.

Field Summary

Modifier and TypeField and Description
pack-priv static final MethodInfo.MethodOrder

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
compare(final Method
the first object to be compared.
a
,
final Method
the second object to be compared.
b
)

Implements java.util.Comparator.compare.

Compares its two arguments for order.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

instanceback to summary
pack-priv static final MethodInfo.MethodOrder instance

Constructor Detail

MethodOrderback to summary
private MethodOrder()

Method Detail

compareback to summary
public int compare(final Method a, final Method b)

Implements java.util.Comparator.compare.

Doc from java.util.Comparator.compare.

Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

The implementor must ensure that signum(compare(x, y)) == -signum(compare(y, x)) for all x and y. (This implies that compare(x, y) must throw an exception if and only if compare(y, x) throws an exception.)

The implementor must also ensure that the relation is transitive: ((compare(x, y)>0) && (compare(y, z)>0)) implies compare(x, z)>0.

Finally, the implementor must ensure that compare(x, y)==0 implies that signum(compare(x, z))==signum(compare(y, z)) for all z.

Parameters
a:Method

the first object to be compared.

b:Method

the second object to be compared.

Returns:int

a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Annotations
@Override