1
0
mirror of https://github.com/DanilaFe/abacus synced 2026-01-27 17:15:21 +00:00

Implement correct plugin loading and registration.

This commit is contained in:
2017-07-27 14:06:57 -07:00
parent efbd6a4c20
commit 2ca23fd427
6 changed files with 112 additions and 4 deletions

View File

@@ -11,6 +11,12 @@ import java.util.*;
*/
public abstract class TreeNode {
/**
* The function that reduces a tree to a single vale.
* @param reducer the reducer used to reduce the tree.
* @param <T> the type the reducer produces.
* @return the result of the reduction, or null on error.
*/
public abstract <T> T reduce(Reducer<T> reducer);
}