private int rewriting(final TreeNode<Op<T>> node) {
		if (matches(node)) {
			final T[] args = newArray(node.childCount());
			for (int i = 0, n = node.childCount(); i < n; ++i) {
				args[i] = ((Val<T>)node.childAt(i).value()).value();
			}

			final T value = node.value().apply(args);
			node.removeAllChildren();
			node.value(Const.of(value));

			return 1;
		} else {
			return 0;
		}
	}
Return the operation type this rewriter is working on.

@return the operation type this rewriter is working on
jenetics.prog/src/main/java/io/jenetics/prog/op/ConstRewriter.java