adavid.reflect
Class SortableMethod
java.lang.Object
|
+--adavid.util.SortableAdapter
|
+--adavid.util.SortableObject
|
+--adavid.util.ObjectString
|
+--adavid.reflect.SortableMethod
- public class SortableMethod
- extends ObjectString
SortableMethod
to sort methods: by type, name and argument
same principle as ObjectString, may return
the Method as well (by a cast)
Constructor Summary |
SortableMethod(java.lang.reflect.Method method)
constructors |
Method Summary |
java.lang.reflect.Method |
getMethod()
returns the typed object,
cast error if setObject used with a bad object |
java.lang.String |
getSource(java.lang.String classSource)
returns the source of this constructor in the given source string |
static java.lang.String |
getSource(java.lang.String classSource,
java.lang.reflect.Method method)
returns the source of the method in the given source string |
Interval |
getSourcePos(java.lang.String classSource)
returns the position of this constructor in the given source string |
static Interval |
getSourcePos(java.lang.String classSource,
java.lang.reflect.Method method)
returns the position of a method in the given source string |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
SortableMethod
public SortableMethod(java.lang.reflect.Method method)
- constructors
getMethod
public java.lang.reflect.Method getMethod()
- returns the typed object,
cast error if setObject used with a bad object
getSource
public java.lang.String getSource(java.lang.String classSource)
- returns the source of this constructor in the given source string
getSourcePos
public Interval getSourcePos(java.lang.String classSource)
- returns the position of this constructor in the given source string
getSourcePos
public static Interval getSourcePos(java.lang.String classSource,
java.lang.reflect.Method method)
- returns the position of a method in the given source string
getSource
public static java.lang.String getSource(java.lang.String classSource,
java.lang.reflect.Method method)
- returns the source of the method in the given source string