edu.cmu.sphinx.tools.tags
Class ObjectTagsParser

java.lang.Object
  extended byedu.cmu.sphinx.tools.tags.ActionTagsParser
      extended byedu.cmu.sphinx.tools.tags.ObjectTagsParser

public class ObjectTagsParser
extends ActionTagsParser

An ObjectTagsParser is an ActionTagsParser that handles registration of Java object instances. With this class, an application can use the put method to register a Java object instance with the parser. Once this has been done, ECMAScript action tags can reference and manipulate that object by name.

See Also:
put(java.lang.String, java.lang.Object)

Constructor Summary
ObjectTagsParser()
          Create a new ObjectParser.
 
Method Summary
 void put(java.lang.String name, java.lang.Object object)
          Put the given object with the given name in the global namespace of the parser.
 
Methods inherited from class edu.cmu.sphinx.tools.tags.ActionTagsParser
debug, evaluateString, get, getGlobal, parseTags, print, showValue, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectTagsParser

public ObjectTagsParser()
Create a new ObjectParser.

Method Detail

put

public void put(java.lang.String name,
                java.lang.Object object)
Put the given object with the given name in the global namespace of the parser. If the name already exists in the global namespace, it is replaced with the new object.

Parameters:
name - the name of the object
object - the object