public static final class UnsupportedVetter.MethodSortable
extends java.lang.Object
implements java.lang.Comparable
Used for sorting methods, which don't come back from Class.getMethods() in a deterministic order. For extra credit, we put the close() method at the end of the sort order so that, when we invoke the sorted methods, we don't accidentally invalidate the receiver.
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.Method |
_method |
Constructor and Description |
---|
MethodSortable(java.lang.reflect.Method method)
Conjure out of a Method
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object other) |
java.lang.reflect.Method |
getMethod()
Get the wrapped Method
|
private boolean |
isCloseMethod() |
java.lang.String |
toString() |
public MethodSortable(java.lang.reflect.Method method)
public java.lang.reflect.Method getMethod()
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
public java.lang.String toString()
toString
in class java.lang.Object
private boolean isCloseMethod()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.