|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.umlv.tatoo.runtime.tools.Debug
public class Debug
A bunch of static methods that help to debugs Tatoo evaluators.
Constructor Summary | |
---|---|
Debug()
|
Method Summary | ||
---|---|---|
static
|
createConverterProxy(Class<T> type,
StringConverter converter)
This method provides a proxy object implementing an interface. |
|
static
|
createTraceProxy(Class<T> type)
Creates a proxy that prints out all methods, of the interface, called. |
|
static
|
createTraceProxy(Class<T> type,
T impl)
Creates a proxy that prints outs all methods, of the interface, called and then delegates the method call to impl. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Debug()
Method Detail |
---|
public static <T> T createConverterProxy(Class<T> type, StringConverter converter)
interface I { int toInteger(String s); double toDouble(String s); } ... I proxy=Debug.createConverterProxy(I.class,new DefaultStringConverter()); proxy.toInteger("3"); // return 3 proxy.toDouble("5.0"); // return 5.0
T
- the type of the interface.type
- the class of the interface.converter
- the converter used to convert the textual representation to
a value.
Object.toString()
public static <T> T createTraceProxy(Class<T> type)
T
- the type of the interfacetype
- the class of the interface.
public static <T> T createTraceProxy(Class<T> type, T impl)
T
- the type of the interfacetype
- the class of the interface.impl
- the implementation used to delegate.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |