com.inxar.syntacs.translator.lr
Class StandardLRTranslator

java.lang.Object
  |
  +--com.inxar.syntacs.translator.lr.StandardLRTranslator
All Implemented Interfaces:
LRTranslator, Serializable, Translator

public class StandardLRTranslator
extends Object
implements LRTranslator

Standard implementation of LRTranslator.

See Also:
Serialized Form

Constructor Summary
StandardLRTranslator()
           
 
Method Summary
 TranslatorGrammar getGrammar()
          Returns the TranslatorGrammar for this Translator.
 Properties getProperties()
          Returns the Properties defined for this Translator.
 void setInput(Input in)
          Sets the Input instance.
 void setLexer(Lexer lexer)
          Sets the Lexer instance.
 void setLRTranslatorGrammar(LRTranslatorGrammar grammar)
          Sets the LRTranslatorGrammar instance.
 void setLRTranslatorInterpreter(LRTranslatorInterpreter inter)
          Sets the LRTranslatorInterpreter instance.
 void setParser(Parser parser)
          Sets the Parser instance.
 void setProperties(Properties p)
          Sets the Properties instance.
 Object translate(Object src)
          Translates the given Object to some other Object representation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardLRTranslator

public StandardLRTranslator()
Method Detail

translate

public Object translate(Object src)
                 throws TranslationException
Description copied from interface: Translator
Translates the given Object to some other Object representation. If errors are encountered during the translation, a TranslationException will be thrown. For LRTranslator instances, the Object argument must be related to character streams, such as a Reader, URL, char[], File, or something like that. If the Translator cannot handle the src argument type, it will let you know.
Specified by:
translate in interface Translator

getGrammar

public TranslatorGrammar getGrammar()
Description copied from interface: Translator
Returns the TranslatorGrammar for this Translator.
Specified by:
getGrammar in interface Translator

getProperties

public Properties getProperties()
Description copied from interface: Translator
Returns the Properties defined for this Translator. Property names, types, and semantics need be documented by actual translator instances.
Specified by:
getProperties in interface Translator

setProperties

public void setProperties(Properties p)
Description copied from interface: LRTranslator
Sets the Properties instance.
Specified by:
setProperties in interface LRTranslator

setInput

public void setInput(Input in)
Description copied from interface: LRTranslator
Sets the Input instance.
Specified by:
setInput in interface LRTranslator

setLexer

public void setLexer(Lexer lexer)
Description copied from interface: LRTranslator
Sets the Lexer instance.
Specified by:
setLexer in interface LRTranslator

setLRTranslatorInterpreter

public void setLRTranslatorInterpreter(LRTranslatorInterpreter inter)
Description copied from interface: LRTranslator
Sets the LRTranslatorInterpreter instance.
Specified by:
setLRTranslatorInterpreter in interface LRTranslator

setParser

public void setParser(Parser parser)
Description copied from interface: LRTranslator
Sets the Parser instance.
Specified by:
setParser in interface LRTranslator

setLRTranslatorGrammar

public void setLRTranslatorGrammar(LRTranslatorGrammar grammar)
Description copied from interface: LRTranslator
Sets the LRTranslatorGrammar instance.
Specified by:
setLRTranslatorGrammar in interface LRTranslator