|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.emfstore.internal.common.observer.ObserverCall.Result
public static class ObserverCall.Result
This class represents an result from an observer call. It contains the observer, the called method and the result or an throwable, if occurred.
| Constructor Summary | |
|---|---|
ObserverCall.Result(ESObserver observer,
Method method,
Object result)
This constructor is used if NO throwable occurred. |
|
ObserverCall.Result(ESObserver observer,
Method method,
Throwable throwable)
This constructor is used if an throwable HAS occurred. |
|
| Method Summary | |
|---|---|
boolean |
exceptionOccurred()
Specifies whether this Result contains an throwable. |
static Object |
getDefaultValue(Method method)
Returns the default value for a given method, which is null or the default primitive value. |
Throwable |
getException()
. |
ESObserver |
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 ObserverCall.Result(ESObserver observer,
Method method,
Object result)
observer - observermethod - methodresult - result
public ObserverCall.Result(ESObserver observer,
Method method,
Throwable throwable)
observer - observerthrowable - throwablemethod - method| Method Detail |
|---|
public boolean exceptionOccurred()
public Throwable getException()
public ESObserver getObserver()
public Object getResult()
public Object getResultOrDefaultValue()
public static Object getDefaultValue(Method method)
method - method
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||