Examples of addAfter()


Examples of com.facebook.presto.jdbc.internal.netty.channel.ChannelPipeline.addAfter()

        if (ctx == null) {
            throw new IllegalStateException(
                    "Replace cann only be called once the FrameDecoder is added to the ChannelPipeline");
        }
        ChannelPipeline pipeline = ctx.getPipeline();
        pipeline.addAfter(ctx.getName(), handlerName, handler);

        try {
            if (cumulation != null) {
                Channels.fireMessageReceived(ctx, cumulation.readBytes(actualReadableBytes()));
            }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.netty.channel.ChannelPipeline.addAfter()

        ChannelFuture future = channel.write(request);
        future.addListener(new ChannelFutureListener() {

            public void operationComplete(ChannelFuture future) {
                ChannelPipeline p = future.getChannel().getPipeline();
                p.addAfter(
                        p.getContext(HttpRequestEncoder.class).getName(),
                        "ws-encoder", new WebSocket07FrameEncoder(true));

                if (future.isSuccess()) {
                    handshakeFuture.setSuccess();
View Full Code Here

Examples of com.intellij.psi.PsiElement.addAfter()

      assert insert != null;
      for (PsiElement element : elements) {
        if (element instanceof HaxeVarDeclarationPart) {
          element = element.getParent();
        }
        anchor = insert.addAfter(element, anchor);
        anchor = afterAddHandler(element, anchor);
      }
    }
    return anchor;
  }
View Full Code Here

Examples of com.intellij.psi.PsiFile.addAfter()

          if (!(child instanceof PsiWhiteSpace)) {
            file.getNode().addLeaf(DartTokenTypesSets.WHITE_SPACE, "\n", child.getNode());
          }
        }
        else {
          file.addAfter(toAdd, anchor);
        }
      }
    }
  }
View Full Code Here

Examples of com.intellij.psi.PsiMethod.addAfter()

    final PsiTypeParameterList fromMethodTypeParameterList = fromMethod.getTypeParameterList();
    if (null != fromMethodTypeParameterList) {
      PsiTypeParameterList typeParameterList = PsiMethodUtil.createTypeParameterList(fromMethodTypeParameterList);
      if (null != typeParameterList) {
        resultMethod.addAfter(typeParameterList, resultMethod.getModifierList());
      }
    }

    final PsiClassType[] referencedTypes = fromMethod.getThrowsList().getReferencedTypes();
    if (referencedTypes.length > 0) {
View Full Code Here

Examples of com.intellij.psi.PsiModifierList.addAfter()

    javaCodeStyleManager.shortenClassReferences(newPsiAnnotation);

    if (null == presentAnnotation) {
      PsiModifierList modifierList = targetElement.getModifierList();
      if (null != modifierList) {
        modifierList.addAfter(newPsiAnnotation, null);
      }
    } else {
      presentAnnotation.setDeclaredAttributeValue(PsiAnnotation.DEFAULT_REFERENCED_METHOD_NAME,
          newPsiAnnotation.findDeclaredAttributeValue(PsiAnnotation.DEFAULT_REFERENCED_METHOD_NAME));
    }
View Full Code Here

Examples of com.intellij.psi.xml.XmlTag.addAfter()

    public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor descriptor) {
      final PsiElement element = descriptor.getPsiElement();
      assert element instanceof XmlTag;

      final XmlTag parentTag = ((XmlTag)element).getParentTag();
      final PsiElement debugTag = parentTag.addAfter(element.copy(), element);
      assert debugTag instanceof XmlTag;

      appendValue((XmlTag)element, "release");
      appendValue((XmlTag)debugTag, "debug");
View Full Code Here

Examples of factOrFiction.model.CardGroup.addAfter()

        Card card = (Card)it.next();
       
        if(card != null) {
          CardGroup group = (CardGroup)card.getParent();
         
          group.addAfter( Card.newInstance(card), card );
          toSelect.addAll(group.lookup( card ));
        }
      }     
    } else if(groupCount == 1) {
      CardGroup group = (CardGroup)currentSelection.getFirstElement();
View Full Code Here

Examples of io.netty.channel.ChannelPipeline.addAfter()

                 * If there are buffered messages in the previous handler at the time this message is read, we would
                 * not be able to convert the content into an SseEvent. For this reason, we also add the decoder after
                 * this handler, so that we can handle the buffered messages.
                 * See the class level javadoc for more details.
                 */
                pipeline.addAfter(NAME, SSE_DECODER_POST_INBOUND_HANDLER, new ServerSentEventDecoder());
            } else {
                pipeline.addAfter(NAME, SSE_DECODER_HANDLER_NAME, new ServerSentEventDecoder());
            }
            ctx.fireChannelRead(msg);
        } else if (msg instanceof LastHttpContent) {
View Full Code Here

Examples of io.netty.channel.ChannelPipeline.addAfter()

                 * this handler, so that we can handle the buffered messages.
                 * See the class level javadoc for more details.
                 */
                pipeline.addAfter(NAME, SSE_DECODER_POST_INBOUND_HANDLER, new ServerSentEventDecoder());
            } else {
                pipeline.addAfter(NAME, SSE_DECODER_HANDLER_NAME, new ServerSentEventDecoder());
            }
            ctx.fireChannelRead(msg);
        } else if (msg instanceof LastHttpContent) {
            LastHttpContent lastHttpContent = (LastHttpContent) msg;

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.