com.inxar.syntacs.translator.lr
Class AbstractLRTranslationComponent

java.lang.Object
  |
  +--com.inxar.syntacs.translator.lr.AbstractLRTranslationComponent
All Implemented Interfaces:
LRTranslationComponent
Direct Known Subclasses:
StandardLexer, StandardLRTranslatorInterpreter, StandardParser

public abstract class AbstractLRTranslationComponent
extends Object
implements LRTranslationComponent

Base implementation of LRTranslationComponent.


Constructor Summary
AbstractLRTranslationComponent()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLRTranslationComponent

public AbstractLRTranslationComponent()
Method Detail

initialize

public void initialize(Object obj)
Description copied from interface: LRTranslationComponent
Initializes the component with some Object. If the runtime type of the given Object is inappropriate, the implementation will throw a RuntimeException.
Specified by:
initialize in interface LRTranslationComponent

reset

public void reset()
Description copied from interface: LRTranslationComponent
Resets the internal state of the TranslationComponent in preparation for another translation.
Specified by:
reset in interface LRTranslationComponent

setLRTranslatorGrammar

public void setLRTranslatorGrammar(LRTranslatorGrammar grammar)
Description copied from interface: LRTranslationComponent
Sets the current LRTranslatorGrammar to the given instance.
Specified by:
setLRTranslatorGrammar in interface LRTranslationComponent

getLRTranslatorGrammar

public LRTranslatorGrammar getLRTranslatorGrammar()
Description copied from interface: LRTranslationComponent
Returns the current LRTranslatorGrammar to the given instance.
Specified by:
getLRTranslatorGrammar in interface LRTranslationComponent

setInput

public void setInput(Input in)
Description copied from interface: LRTranslationComponent
Sets the current Input to the given instance.
Specified by:
setInput in interface LRTranslationComponent

getInput

public Input getInput()
Description copied from interface: LRTranslationComponent
Returns the current Input instance.
Specified by:
getInput in interface LRTranslationComponent

setAuditor

public void setAuditor(Auditor auditor)
Description copied from interface: LRTranslationComponent
Sets the current Auditor to the given instance.
Specified by:
setAuditor in interface LRTranslationComponent

getAuditor

public Auditor getAuditor()
Description copied from interface: LRTranslationComponent
Returns the current Auditor instance.
Specified by:
getAuditor in interface LRTranslationComponent

setProperties

public void setProperties(Properties p)
Description copied from interface: LRTranslationComponent
Sets the current Properties to the given instance.
Specified by:
setProperties in interface LRTranslationComponent

getProperties

public Properties getProperties()
Description copied from interface: LRTranslationComponent
Returns the current Properties instance.
Specified by:
getProperties in interface LRTranslationComponent