edu.cmu.sphinx.tools.tags
Class ObjectTagsParser
java.lang.Object
edu.cmu.sphinx.tools.tags.ActionTagsParser
edu.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)
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ObjectTagsParser
public ObjectTagsParser()
- Create a new ObjectParser.
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 objectobject
- the object