|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnenok.Utilities
public class Utilities
Utility class that provides a collection of static methods which extend the java reflection framework.
Constructor Summary | |
---|---|
Utilities()
|
Method Summary | |
---|---|
static List<Method> |
getRepresentators(Valuation val)
This static method returns a list of all representators defined in the argument's class. |
static boolean |
interfaceOf(Class _interface,
Class _class)
Helper method to determine if a given class implements a given interface. |
static boolean |
superclassOf(Class _super,
Class _class)
Helper method to determine if a given class is superclass of another. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utilities()
Method Detail |
---|
public static boolean interfaceOf(Class _interface, Class _class)
_interface
- Is this interface implemented by the given class._class
- Does this class implement the given interface.
true
, if the given class implements the given interface.public static boolean superclassOf(Class _super, Class _class)
_super
- Is this class ascendent of the second argument._class
- Is this class descendent of the former argument.
true
, if the first argument is a superclass of the second.public static List<Method> getRepresentators(Valuation val)
Representor
.
val
- The valuation class instance to be searched.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |