|
TPTP 4.4.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.hyades.execution.invocation.MarshalData
org.eclipse.hyades.execution.invocation.ReturnData
ReturnData instances store data that is needed to marshal
or unmarshal values that are to be returned as a result of a method
invocation.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.hyades.execution.invocation.MarshalData |
|---|
argTypes, call, targetId |
| Constructor Summary | |
|---|---|
ReturnData(java.lang.Integer targetId,
java.lang.Class[] argTypes,
java.lang.String call,
java.lang.Object returnValue)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getReturnValue()
Get the return value resulting from a method invocation. |
boolean |
isError()
Indicates whether or not this instance wraps an exception that has been thrown. |
| Methods inherited from class org.eclipse.hyades.execution.invocation.MarshalData |
|---|
getArgTypes, getCall, getTargetId, isForSameCallAs |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReturnData(java.lang.Integer targetId,
java.lang.Class[] argTypes,
java.lang.String call,
java.lang.Object returnValue)
targetId - the unique id associated with the target objectargTypes - the list of types matching those declared as parameters
in the signature of callcall - the method that is to be invokedreturnValue - the value returned from call. If this
value is assignment compatible with Throwable, the
ReturnData instance to be created represents an
exception that has been thrown as a result of call
having been invoked. If call returns a primitive
type, returnValue should be a wrapper object of the
appropriate type. If call does not return a value,
returnValue can be null.| Method Detail |
public java.lang.Object getReturnValue()
Object if the method that was invoked is one
that returns a value or if the invocation resulted in an
exception being thrown, or null if the method
does not return a valuepublic boolean isError()
false if an exception was not thrown,
true if the value wrapped by this instance is
assignment compatible with Throwable
|
TPTP 4.4.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||