|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for information units relating to translation so they can be given to different parsers and generators to ensure consistent representations. Common examples of these units include symbol tables. TranslationInfoUnits are contained within and passed around using TranslationContexts. Translators that are to exchange information via these units must agree on both a name for particular unit and a sub-interface of this interface which defines the methods usable on that unit. This allows for multiple instances of the same type of unit (e.g. a generic symbol table) but with different names for instances being used for different purposes.
TranslationContext
Method Summary | |
TranslationInfoUnit |
copyUnit()
Returns a duplicate of this information unit that is distinct from the original. |
java.lang.String |
getUnitName()
Returns the name of this translation unit. |
void |
resetUnit()
Resets this information unit to its initial state. |
void |
setUnitName(java.lang.String newName)
Sets the name of this translation unit. |
Method Detail |
public void setUnitName(java.lang.String newName)
newName
- the new name for this unit.public java.lang.String getUnitName()
public void resetUnit()
public TranslationInfoUnit copyUnit()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |