adavid.reflect
Class SortableConstructor
java.lang.Object
|
+--adavid.util.SortableAdapter
|
+--adavid.util.SortableObject
|
+--adavid.util.ObjectString
|
+--adavid.reflect.SortableConstructor
- public class SortableConstructor
- extends ObjectString
SortableConstructor
to sort constructors: by name and argument
same principle as ObjectString, may return
the Constructor as well (by a cast)
Constructor Summary |
SortableConstructor(java.lang.reflect.Constructor constructor)
constructors |
Method Summary |
java.lang.reflect.Constructor |
getConstructor()
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.Constructor constructor)
returns the source of the constructor in the given argument |
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.Constructor constructor)
returns the position of the constructor in the given source argument |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
SortableConstructor
public SortableConstructor(java.lang.reflect.Constructor constructor)
- constructors
getConstructor
public java.lang.reflect.Constructor getConstructor()
- 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.Constructor constructor)
- returns the position of the constructor in the given source argument
getSource
public static java.lang.String getSource(java.lang.String classSource,
java.lang.reflect.Constructor constructor)
- returns the source of the constructor in the given argument