|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.sf.arise.gsf.Result
| Method Summary | |
static Result |
fail(java.lang.Object expression,
java.lang.Throwable throwable,
long time)
Construct a failed result. |
long |
getEvalTime()
The time taken to evaluate the result, in milliseconds. |
java.lang.Object |
getExpression()
The expression that evaluated to this result. |
java.lang.Throwable |
getThrowable()
The throwable of a failed result. |
java.lang.String |
getThrowableMessage()
|
java.lang.String |
getThrowableType()
|
java.lang.Class |
getType()
The class object of the result. |
java.lang.Object |
getTypedValue()
The holder object if wrapped, otherwise the object itself. |
java.lang.String |
getTypeName()
The name of the class of the result. |
java.lang.Object |
getValue()
The value. |
java.lang.Object |
getValueString()
The toString of the value. |
Holder |
getWrappedValue()
The Holder object if wrapped, otherwise null. |
boolean |
isOK()
True iff the result was not a failure. |
boolean |
isPrimitive()
True iff the result was a primitive value. |
boolean |
isWrapped()
True iff the result is wrapped, in a Holder. |
static Result |
ok(java.lang.Object expression,
java.lang.Object object,
long time)
Construct an OK result. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static Result ok(java.lang.Object expression,
java.lang.Object object,
long time)
public static Result fail(java.lang.Object expression,
java.lang.Throwable throwable,
long time)
public final Holder getWrappedValue()
Holder object if wrapped, otherwise null. Will not
be serialized.
public final boolean isWrapped()
Holder.
public final java.lang.Object getValue()
public final java.lang.Object getValueString()
public final java.lang.Object getTypedValue()
public final java.lang.Class getType()
public final java.lang.String getTypeName()
public boolean isPrimitive()
public java.lang.Throwable getThrowable()
public java.lang.String getThrowableType()
public java.lang.String getThrowableMessage()
public final long getEvalTime()
public final boolean isOK()
public java.lang.Object getExpression()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
All code and documentation is
Copyright (c) : 2000-2003 Kjetil Valstadsve & Maja S. Bratseth