Examples of Protocol


Examples of com.icona.tree.nodes.Protocol


    // $ANTLR start "protocol_declaration"
    // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:324:1: protocol_declaration returns [Protocol protocol] : '@protocol' pName= protocol_name (pList= protocol_reference_list )? ( protocol_interface_declaration )? '@end' ;
    public final Protocol protocol_declaration() throws RecognitionException {
        Protocol protocol = null;


        String pName =null;

        ObjectiveCParser.protocol_reference_list_return pList =null;



          
            protocol = new Protocol(null, -1);
           
           
        try {
            // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:333:5: ( '@protocol' pName= protocol_name (pList= protocol_reference_list )? ( protocol_interface_declaration )? '@end' )
            // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:335:2: '@protocol' pName= protocol_name (pList= protocol_reference_list )? ( protocol_interface_declaration )? '@end'
            {
            match(input,61,FOLLOW_61_in_protocol_declaration952); if (state.failed) return protocol;

            pushFollow(FOLLOW_protocol_name_in_protocol_declaration962);
            pName=protocol_name();

            state._fsp--;
            if (state.failed) return protocol;

            if ( state.backtracking==0 ) { protocol.setProtocolName( pName ); }

            // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:339:2: (pList= protocol_reference_list )?
            int alt37=2;
            int LA37_0 = input.LA(1);

            if ( (LA37_0==43) ) {
                alt37=1;
            }
            switch (alt37) {
                case 1 :
                    // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:339:4: pList= protocol_reference_list
                    {
                    pushFollow(FOLLOW_protocol_reference_list_in_protocol_declaration975);
                    pList=protocol_reference_list();

                    state._fsp--;
                    if (state.failed) return protocol;

                    }
                    break;

            }


            if ( state.backtracking==0 ) { protocol.setProtocolList((pList!=null?input.toString(pList.start,pList.stop):null)); }

            // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:341:2: ( protocol_interface_declaration )?
            int alt38=2;
            int LA38_0 = input.LA(1);

            if ( (LA38_0==31||LA38_0==35||LA38_0==57||(LA38_0 >= 63 && LA38_0 <= 64)||LA38_0==69||(LA38_0 >= 71 && LA38_0 <= 72)||LA38_0==75||(LA38_0 >= 77 && LA38_0 <= 78)||(LA38_0 >= 81 && LA38_0 <= 86)||(LA38_0 >= 88 && LA38_0 <= 91)) ) {
                alt38=1;
            }
            else if ( (LA38_0==54) ) {
                int LA38_2 = input.LA(2);

                if ( (synpred52_ObjectiveC()) ) {
                    alt38=1;
                }
            }
            switch (alt38) {
                case 1 :
                    // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:341:4: protocol_interface_declaration
                    {
                    pushFollow(FOLLOW_protocol_interface_declaration_in_protocol_declaration987);
                    protocol_interface_declaration();

                    state._fsp--;
                    if (state.failed) return protocol;

                    }
                    break;

            }


            match(input,54,FOLLOW_54_in_protocol_declaration996); if (state.failed) return protocol;

            if ( state.backtracking==0 ) { System.out.println( protocol.toString()  ); }

            }

        }
        catch (RecognitionException re) {
View Full Code Here

Examples of com.ning.http.client.ProxyServer.Protocol

        String host = System.getProperty(PROXY_HOST);
       
        if ( host != null ) {
            int port = Integer.valueOf(System.getProperty(PROXY_PORT, "80"));
           
            Protocol protocol;
            try {
                protocol = Protocol.valueOf(System.getProperty(PROXY_PROTOCOL, "HTTP"));
            } catch(IllegalArgumentException e) {
                protocol = Protocol.HTTP;
            }
View Full Code Here

Examples of com.peterhi.net.Protocol

          ms.writeLength(new Length(0));
        } else {
          ms.writeLength(new Length(index + 1));
        }
      } else {
        Protocol protocol = (Protocol )object;
       
        serializedProtocols.add(protocol);
       
        ProtocolInvocationHandler pih = (ProtocolInvocationHandler )Proxy.getInvocationHandler(object);
        Map<String, Object> propertyMap = pih.getPropertyMap();
View Full Code Here

Examples of com.sissi.protocol.Protocol

    this.next = next;
  }

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    Protocol response = this.prepare(protocol.parent().reply().setType(this.type));
    context.write(this.clear ? response.clear() : response);
    return this.next;
  }
View Full Code Here

Examples of com.sissi.protocol.Protocol

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    XUser user = this.extracter.extract(protocol.cast(Owner.class).getX(), new XUser()).cast(XUser.class);
    if (user.contain()) {
      JID group = super.build(protocol.parent().getTo());
      Protocol message = new Message().noneThread().muc(user).setType(MessageType.GROUPCHAT).setFrom(group);
      for (JID jid : super.whoSubscribedMe(group)) {
        super.findOne(jid, true).write(message);
      }
    }
    return true;
View Full Code Here

Examples of com.sissi.protocol.Protocol

   * 获取或堵塞
   *
   * @throws Exception
   */
  protected void getAndFeed() throws Exception {
    Protocol protocol = Protocol.class.cast(this.future.get(this.interval.getInterval(), this.interval.getUnit()));
    if (protocol != null) {
      this.feeder.feed(protocol);
    }
  }
View Full Code Here

Examples of com.sleepycat.je.rep.elections.Protocol

        this.monitorChangeListener = newListener;

        serviceDispatcher =
            new ServiceDispatcher(monitorConfig.getNodeSocketAddress());
        serviceDispatcher.start();
        Protocol electionProtocol =
            new Protocol(TimebasedProposalGenerator.getParser(),
                         MasterValue.getParser(),
                         monitorConfig.getGroupName(),
                         nameIdPair,
                         null);
        learner = new Learner(electionProtocol, serviceDispatcher);
View Full Code Here

Examples of com.sleepycat.je.rep.stream.Protocol

        shutdown.set(true);
    }

    /* Get the protocol stats of this Feeder. */
    public StatGroup getProtocolStats(StatsConfig config) {
        final Protocol protocol = outputThread.protocol;

        return (protocol != null) ?
               protocol.getStats(config) :
               new StatGroup(BinaryProtocolStatDefinition.GROUP_NAME,
                             BinaryProtocolStatDefinition.GROUP_DESC);
    }
View Full Code Here

Examples of com.stimulus.archiva.domain.MailboxConnections.Protocol

         
       
          if (id==null) id = "yes"; // backwards compatibility
          if (ur==null) ur = "yes";

          Protocol protocol = Protocol.IMAP;
          if (pr!=null) {
           
            try {
              protocol = Protocol.valueOf(pr.trim().toUpperCase(Locale.ENGLISH));
              } catch (IllegalArgumentException iae) {
View Full Code Here

Examples of com.sun.grizzly.Controller.Protocol

        final WorkerThread workerThread =
                ((WorkerThread) Thread.currentThread());
        ByteBuffer buffer = workerThread.getByteBuffer();
        SipParser _parser = SipParser.getInstance();
        final Protocol prot = ctx.getProtocol();
        final SelectionKey key = ctx.getSelectionKey();
        final SelectorHandler handler = ctx.getSelectorHandler();
      final ThreadAttachment currentTA = workerThread.getAttachment();

        TargetTuple remote = null;
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.