|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecp.internal.core.util.observer.ECPObserverCall.Result
public static class ECPObserverCall.Result
This class represents an result from an observer call. It contains the observer, the called method and the result or an exception, if occured.
Constructor Summary | |
---|---|
ECPObserverCall.Result(ECPObserver observer,
Method method,
Object result)
This constructor is used if NO exception occurred. |
|
ECPObserverCall.Result(ECPObserver observer,
Throwable e,
Method method)
This constructor is used if an exception HAS occurred. |
Method Summary | |
---|---|
boolean |
exceptionOccurred()
Specifies whether this Result contains an exception. |
static Object |
getDefaultValue(Method m)
Returns the default value for a given method. |
Throwable |
getException()
. |
ECPObserver |
getObserver()
The observer. |
Object |
getResult()
The result. |
Object |
getResultOrDefaultValue()
Returns the result or the default value for primitive types. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ECPObserverCall.Result(ECPObserver observer, Method method, Object result)
observer
- observermethod
- methodresult
- resultpublic ECPObserverCall.Result(ECPObserver observer, Throwable e, Method method)
observer
- observere
- exceptionmethod
- methodMethod Detail |
---|
public boolean exceptionOccurred()
public Throwable getException()
public ECPObserver getObserver()
public Object getResult()
public Object getResultOrDefaultValue()
public static Object getDefaultValue(Method m)
m
- method
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |