|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.tools.tags.ActionTagsUtilities
Utilities for handling ECMAScript embedded in JSGF RuleGrammar tags. These utilities are not dependent upon any particular ECMAScript implementation; they merely provide convenience methods for generating ECMAScript scripts to pass to an ECMAScript implementation.
ActionTagsParser
Constructor Summary | |
ActionTagsUtilities()
|
Method Summary | |
static java.lang.String |
getClassDefinitions()
Generate an ECMAScript script that defines the classes and functions referenced by the String returned from the getScript method. |
static java.lang.String |
getParseTree(RuleParse ruleParse)
A debug utility to determine the flattened parse tree of a RuleParse instance. |
static java.lang.String |
getScript(RuleParse ruleParse)
Given a RuleParse, generate an executable ECMAScript script based upon the RuleTags in the RuleParse. |
static boolean |
isDebugging()
Is debug turned on? |
static void |
setDebugging(boolean newDebug)
Turn debugging on or off. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActionTagsUtilities()
Method Detail |
public static void setDebugging(boolean newDebug)
isDebugging()
public static boolean isDebugging()
setDebugging(boolean)
public static java.lang.String getClassDefinitions()
Note that this does not evaluate the script. It is up to the ActionTags parser to do that.
getScript(javax.speech.recognition.RuleParse)
public static java.lang.String getScript(RuleParse ruleParse)
Note that this does not evaluate the script. It is up to the action tags parser to do that.
ruleParse
- the RuleParse containing RuleTags with embedded
ECMAScript
getClassDefinitions()
public static java.lang.String getParseTree(RuleParse ruleParse)
ruleParse
- the RuleParse containing RuleTags with embedded
ECMAScript
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |