public static Cons cppTranslateTheCode(Cons tree) {
    { Cons otree = null;

      { GeneralizedSymbol testValue000 = ((GeneralizedSymbol)(tree.rest.value));

        if (testValue000 == Stella.KWD_FUNCTION) {
          otree = Cons.list$(Cons.cons(Stella.SYM_STELLA_CPP_CAST, Cons.cons(Cons.list$(Cons.cons(Stella.SYM_STELLA_CPP_FUNCTION_POINTER, Cons.cons(Symbol.cppTranslateFunctionNameFromName(((Symbol)(tree.rest.rest.value))), Cons.cons(Stella.NIL, Stella.NIL)))), Cons.cons(StringWrapper.wrapString("cpp_function_code"), Cons.cons(Stella.NIL, Stella.NIL)))));
        }
        else if (testValue000 == Stella.KWD_METHOD) {
          otree = Cons.list$(Cons.cons(Stella.SYM_STELLA_CPP_CAST, Cons.cons(Cons.list$(Cons.cons(Stella.SYM_STELLA_CPP_METHOD_POINTER, Cons.cons(Symbol.cppTranslateMethodNameFromName(((Symbol)(tree.fourth())), ((StandardObject)(tree.rest.rest.value))), Cons.cons(Stella.NIL, Stella.NIL)))), Cons.cons(StringWrapper.wrapString("cpp_method_code"), Cons.cons(Stella.NIL, Stella.NIL)))));
        }
        else {
          { OutputStringStream stream000 = OutputStringStream.newOutputStringStream();

            stream000.nativeStream.print("`" + testValue000 + "' is not a valid case option");
            throw ((StellaException)(StellaException.newStellaException(stream000.theStringReader()).fillInStackTrace()));
          }
        }
      }
      return (otree);
    }
  }