[Swift-commit] r2926 - trunk/src/org/griphyn/vdl/karajan/lib
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Thu May 14 03:54:07 CDT 2009
Author: benc
Date: 2009-05-14 03:54:07 -0500 (Thu, 14 May 2009)
New Revision: 2926
Modified:
trunk/src/org/griphyn/vdl/karajan/lib/SwiftArg.java
Log:
Raw accessor for Swift arguments that allow allow access to the underlying
DSHandle objects without unwrapping or waiting for the DSHandle to be
assigned/closed.
Modified: trunk/src/org/griphyn/vdl/karajan/lib/SwiftArg.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/SwiftArg.java 2009-05-13 13:52:50 UTC (rev 2925)
+++ trunk/src/org/griphyn/vdl/karajan/lib/SwiftArg.java 2009-05-14 08:54:07 UTC (rev 2926)
@@ -84,6 +84,15 @@
throw new ExecutionException("Internal type error. Expected a Double. Got " + classOf(dbl));
}
}
+
+ public DSHandle getRawValue(VariableStack stack) throws ExecutionException {
+ Object v = super.getValue(stack);
+ if(v instanceof DSHandle) {
+ return (DSHandle)v;
+ } else {
+ throw new ExecutionException("Expected Swift data, but got some primitive type (" + v + ")");
+ }
+ }
private static Class classOf(Object object) {
if (object == null) {
More information about the Swift-commit
mailing list