- Timestamp:
- 07/18/13 23:52:25 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/main/src/main/java/com/framsticks/core/TreeOperations.java
r102 r103 236 236 } 237 237 238 public static void call(final Path path, final String procedureName, final Object[] arguments, final Future<Object> future) {238 public static <R> void call(final Path path, final String procedureName, final Object[] arguments, final Class<R> resultType, final Future<R> future) { 239 239 final Tree tree = path.getTree(); 240 240 … … 243 243 protected void runAt() { 244 244 path.assureResolved(); 245 tree.call(path, tree.getRegistry().getFramsClass(path.getTop().getParam()).getParamEntry(procedureName, ProcedureParam.class), arguments, future);246 } 247 }); 248 } 249 250 public static void call(final Path path, final ProcedureParam param, final Object[] arguments, final Future<Object> future) {251 final Tree tree = path.getTree(); 252 253 dispatchIfNotActive(tree, new RunAt<Tree>(future) { 254 @Override 255 protected void runAt() { 256 tree.call(path, param, arguments, future);245 tree.call(path, tree.getRegistry().getFramsClass(path.getTop().getParam()).getParamEntry(procedureName, ProcedureParam.class), arguments, resultType, future); 246 } 247 }); 248 } 249 250 public static <R> void call(final Path path, final ProcedureParam param, final Object[] arguments, final Class<R> resultType, final Future<R> future) { 251 final Tree tree = path.getTree(); 252 253 dispatchIfNotActive(tree, new RunAt<Tree>(future) { 254 @Override 255 protected void runAt() { 256 tree.call(path, param, arguments, resultType, future); 257 257 } 258 258 });
Note: See TracChangeset
for help on using the changeset viewer.