public void addIdentifierTranslation(ASTNode identifier) {
    if (!enabled) {
      return;
    }
    assert (identifier.getToken().getType() == HiveParser.Identifier);
    String replacementText = identifier.getText();
    replacementText = BaseSemanticAnalyzer.unescapeIdentifier(replacementText);
    replacementText = HiveUtils.unparseIdentifier(replacementText, quotation);
    addTranslation(identifier, replacementText);
  }
Register a translation for an identifier.

@param identifier
         source node (which must be an identifier) to be replaced
ql/src/java/org/apache/hadoop/hive/ql/parse/UnparseTranslator.java