org.inxar.syntacs.translator.lr
Interface LRTranslationComponent

All Known Subinterfaces:
Lexer, LexerInterpreter, LRTranslatorInterpreter, Parser, ParserInterpreter
All Known Implementing Classes:
AbstractLRTranslationComponent

public interface LRTranslationComponent

The LRTranslationComponent interface describes common behavior required of all components in the lr translation process -- the ability to be reset to an initial state, the need to reference the LRTranslatorGrammar during the translation process, the need of referencing the Input during the translation process, and access to general properties.


Method Summary
 Auditor getAuditor()
          Returns the current Auditor instance.
 Input getInput()
          Returns the current Input instance.
 LRTranslatorGrammar getLRTranslatorGrammar()
          Returns the current LRTranslatorGrammar to the given instance.
 Properties getProperties()
          Returns the current Properties instance.
 void initialize(Object obj)
          Initializes the component with some Object.
 void reset()
          Resets the internal state of the TranslationComponent in preparation for another translation.
 void setAuditor(Auditor auditor)
          Sets the current Auditor to the given instance.
 void setInput(Input in)
          Sets the current Input to the given instance.
 void setLRTranslatorGrammar(LRTranslatorGrammar grammar)
          Sets the current LRTranslatorGrammar to the given instance.
 void setProperties(Properties p)
          Sets the current Properties to the given instance.
 

Method Detail

initialize

public void initialize(Object obj)
Initializes the component with some Object. If the runtime type of the given Object is inappropriate, the implementation will throw a RuntimeException.

reset

public void reset()
Resets the internal state of the TranslationComponent in preparation for another translation.

setLRTranslatorGrammar

public void setLRTranslatorGrammar(LRTranslatorGrammar grammar)
Sets the current LRTranslatorGrammar to the given instance.

getLRTranslatorGrammar

public LRTranslatorGrammar getLRTranslatorGrammar()
Returns the current LRTranslatorGrammar to the given instance.

setInput

public void setInput(Input in)
Sets the current Input to the given instance.

getInput

public Input getInput()
Returns the current Input instance.

setAuditor

public void setAuditor(Auditor auditor)
Sets the current Auditor to the given instance.

getAuditor

public Auditor getAuditor()
Returns the current Auditor instance.

setProperties

public void setProperties(Properties p)
Sets the current Properties to the given instance.

getProperties

public Properties getProperties()
Returns the current Properties instance.