MetaDone
|
Public Member Functions | |
Abstract (Object result) | |
Abstract (Throwable exception) | |
Throwable | getException () |
String | getString () |
boolean | isException () |
Class<?> | getType () |
boolean | equals (Object obj) |
int | hashCode () |
String | toString () |
Protected Attributes | |
final Object | result |
Package Functions | |
public< T > T | getObject (Class< T > expectedType) |
Abstract basic implementation of ScriptResult.
metadone.metabusiness.script.ScriptEvaluator.ScriptResult.Abstract.Abstract | ( | Throwable | exception | ) |
boolean metadone.metabusiness.script.ScriptEvaluator.ScriptResult.Abstract.equals | ( | Object | obj | ) |
Throwable metadone.metabusiness.script.ScriptEvaluator.ScriptResult.Abstract.getException | ( | ) |
Gets the exception occurred while evaluating the script.
null
Implements metadone.metabusiness.script.ScriptEvaluator.ScriptResult.
public<T> T metadone.metabusiness.script.ScriptEvaluator.ScriptResult.Abstract.getObject | ( | Class< T > | expectedType | ) | [package] |
Gets the result casted to a given type.
<T> | The expected type |
expectedType | The expected type class |
null
Implements metadone.metabusiness.script.ScriptEvaluator.ScriptResult.
Reimplemented in metadone.metabusiness.script.js.JSResult.
String metadone.metabusiness.script.ScriptEvaluator.ScriptResult.Abstract.getString | ( | ) |
Gets the result as a string.
null
if there was an exception Implements metadone.metabusiness.script.ScriptEvaluator.ScriptResult.
Reimplemented in metadone.metabusiness.script.js.JSResult.
Class<?> metadone.metabusiness.script.ScriptEvaluator.ScriptResult.Abstract.getType | ( | ) |
Gets the type of the result.
Implements metadone.metabusiness.script.ScriptEvaluator.ScriptResult.
int metadone.metabusiness.script.ScriptEvaluator.ScriptResult.Abstract.hashCode | ( | ) |
boolean metadone.metabusiness.script.ScriptEvaluator.ScriptResult.Abstract.isException | ( | ) |
Checks whether this result is an exception.
true
iff this result is an exception Implements metadone.metabusiness.script.ScriptEvaluator.ScriptResult.
String metadone.metabusiness.script.ScriptEvaluator.ScriptResult.Abstract.toString | ( | ) |
final Object metadone.metabusiness.script.ScriptEvaluator.ScriptResult.Abstract.result [protected] |
Referenced by metadone.metabusiness.script.js.JSResult.getBoolean(), metadone.metabusiness.script.ConstantScriptResult.getBoolean(), metadone.metabusiness.script.js.JSResult.getNumber(), metadone.metabusiness.script.ConstantScriptResult.getNumber(), metadone.metabusiness.script.js.JSResult.getObject(), and metadone.metabusiness.script.js.JSResult.getString().