Examples of JRecord


Examples of org.commoncrawl.rpc.compiler.JRecord

  }

  final public JModule Module() throws ParseException {
    JModule module;
    String mName;
    JRecord record;
    JService service;
    jj_consume_token(MODULE_TKN);
    mName = ModuleName();
    System.out.println("Module Name:" + mName);
    curModuleName = mName;
    module = new JModule(mName);
    jj_consume_token(LBRACE_TKN);
    label_2: while (true) {
      switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
        case SERVICE_TKN:
        case RECORD_TKN:
          ;
          break;
        default:
          jj_la1[2] = jj_gen;
          break label_2;
      }
      switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
        case SERVICE_TKN:
          service = Service();
          module.addService(service);
          break;
        case RECORD_TKN:
          record = Record();
          if (record != null)
            System.out.println("Record() returned:" + record.toString());
          else
            System.out.println("Record() returned NULL");

          module.addRecord(record);
          break;
View Full Code Here

Examples of org.commoncrawl.rpc.compiler.JRecord

  final public JMethod Method() throws ParseException {
    String inputType = null;
    String outputType = null;
    Token name;
    JRecord inputAnonymousRecord = null;
    JRecord outputAnonymousRecord = null;
    jj_consume_token(METHOD_TKN);
    name = jj_consume_token(IDENT_TKN);
    curMethod = name.toString();
    jj_consume_token(LPAREN_TKN);
    jj_consume_token(IN_TKN);
    curParamType = "input";
    switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
      case IDENT_TKN:
        inputType = ModuleName();
        break;
      case LBRACE_TKN:
        inputAnonymousRecord = AnonymousRecord();
        break;
      default:
        jj_la1[6] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
    }
    jj_consume_token(COMMA_TKN);
    jj_consume_token(OUT_TKN);
    curParamType = "output";
    switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
      case IDENT_TKN:
        outputType = ModuleName();
        break;
      case LBRACE_TKN:
        outputAnonymousRecord = AnonymousRecord();
        break;
      default:
        jj_la1[7] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
    }
    jj_consume_token(RPAREN_TKN);
    JRecord inputRecordType = null;
    JRecord outputRecordType = null;
    if (inputAnonymousRecord != null) {
      inputRecordType = inputAnonymousRecord;
    } else if (inputType.compareTo("NullMessage") != 0) {

      if (inputType.indexOf('.', 0) < 0) {
View Full Code Here

Examples of org.commoncrawl.rpc.compiler.JRecord

      }
    }
    jj_consume_token(RBRACE_TKN);
    String fqn = curModuleName + "." + rname;
    System.out.println("fqn:" + fqn);
    JRecord r = new JRecord(fqn, flist, enumList, modifiers, comparators);
    recTab.put(fqn, r);
    {
      if (true)
        return r;
    }
View Full Code Here

Examples of org.commoncrawl.rpc.compiler.JRecord

          break label_7;
      }
    }
    jj_consume_token(RBRACE_TKN);
    String fqn = curMethod + "_" + curParamType;
    JRecord r = new JRecord(fqn, flist, null, null, null);
    {
      if (true)
        return r;
    }
    throw new Error("Missing return statement in function");
View Full Code Here

Examples of org.commoncrawl.rpc.compiler.JRecord

      case IDENT_TKN:
        rname = ModuleName();
        if (rname.indexOf('.', 0) < 0) {
          rname = curModuleName + "." + rname;
        }
        JRecord r = recTab.get(rname);
        if (r == null) {
          System.out.println("Type " + rname + " not known. Exiting.");
          System.exit(1);
        }
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.