1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 * @fileoverview Interface definition for a class which evaluates speech rules.
8 * A speech rule evaluator knows how to generate a description given a node and
12 goog.provide('cvox.SpeechRuleEvaluator');
14 goog.require('cvox.SpeechRule');
20 cvox.SpeechRuleEvaluator = goog.abstractMethod;
24 * Default evaluation of a node if no speech rule is applicable.
25 * @param {!Node} node The target node (or root of subtree).
26 * @return {!Array<cvox.NavDescription>} The resulting description.
28 cvox.SpeechRuleEvaluator.prototype.evaluateDefault = goog.abstractMethod;