|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.inxar.syntacs.translator.lr.StandardLRTranslator
Standard implementation of LRTranslator
.
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 |
public StandardLRTranslator()
Method Detail |
public Object translate(Object src) throws TranslationException
Translator
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.translate
in interface Translator
public TranslatorGrammar getGrammar()
Translator
TranslatorGrammar
for this
Translator
.getGrammar
in interface Translator
public Properties getProperties()
Translator
Properties
defined for this
Translator
. Property names, types, and semantics
need be documented by actual translator instances.getProperties
in interface Translator
public void setProperties(Properties p)
LRTranslator
Properties
instance.setProperties
in interface LRTranslator
public void setInput(Input in)
LRTranslator
Input
instance.setInput
in interface LRTranslator
public void setLexer(Lexer lexer)
LRTranslator
Lexer
instance.setLexer
in interface LRTranslator
public void setLRTranslatorInterpreter(LRTranslatorInterpreter inter)
LRTranslator
LRTranslatorInterpreter
instance.setLRTranslatorInterpreter
in interface LRTranslator
public void setParser(Parser parser)
LRTranslator
Parser
instance.setParser
in interface LRTranslator
public void setLRTranslatorGrammar(LRTranslatorGrammar grammar)
LRTranslator
LRTranslatorGrammar
instance.setLRTranslatorGrammar
in interface LRTranslator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |