Examples of discard()


Examples of antlr.TokenStreamHiddenTokenFilter.discard()

                                                                           defineState);
            IDLLexer lexer = new IDLLexer(new java.io.LineNumberReader(preprocessor));
            lexer.setTokenObjectClass("antlr.CommonHiddenStreamToken");
            TokenStreamHiddenTokenFilter filter =
                new TokenStreamHiddenTokenFilter(lexer);
            filter.discard(IDLTokenTypes.WS);
            filter.hide(IDLTokenTypes.SL_COMMENT);
            filter.hide(IDLTokenTypes.ML_COMMENT);
            parser = new IDLParser(filter);
            parser.setASTNodeClass("antlr.CommonASTWithHiddenTokens");
            parser.specification();
View Full Code Here

Examples of antlr.TokenStreamRewriteEngine.discard()

    ANTLRLexer lexer = new ANTLRLexer(new StringReader(matchTokenRuleST.toString()));
    lexer.setTokenObjectClass("antlr.TokenWithIndex");
    TokenStreamRewriteEngine tokbuf =
      new TokenStreamRewriteEngine(lexer);
    tokbuf.discard(ANTLRParser.WS);
    tokbuf.discard(ANTLRParser.ML_COMMENT);
    tokbuf.discard(ANTLRParser.COMMENT);
    tokbuf.discard(ANTLRParser.SL_COMMENT);
    ANTLRParser parser = new ANTLRParser(tokbuf);
    parser.setGrammar(this);
View Full Code Here

Examples of blackberry.common.push.PushData.discard()

            synchronized( _messageQueue ) {
                Enumeration messagesList = _messageQueue.elements();
                PushData message;
                while( messagesList.hasMoreElements() ) {
                    message = (PushData) messagesList.nextElement();
                    message.discard();
                }
                _messageQueue.removeAllElements();
            }
        }
View Full Code Here

Examples of ca.uhn.hl7v2.app.ConnectionHub.discard()

        } catch (IOException e) {
            System.out.println("Error : " + e);
        }

        // Close the connection and server
        connectionHub.discard(connection);
    }

    public static void main(String[] args) throws HL7Exception {
        String host = System.getProperty("hl7-host");
        String port = System.getProperty("hl7-port");
View Full Code Here

Examples of com.carrotsearch.hppc.IntStack.discard()

                if (top_h <= h) break;

                // Visit the node and remove it from the end of the stack.
                final int top_i = stack.get(stack.size() - 2);
                final boolean leaf = (top_i < 0);
                stack.discard(2);

                visitor.visitNode(sa[leaf ? -(top_i + 1) : top_i], top_h, leaf);
            }

            if (top_h < h)
View Full Code Here

Examples of com.caucho.vfs.TempStream.discard()

      saveToStream(node, os, isHTML);

      os.close();
    }
    catch (IOException ex) {
      tempStream.discard();
      env.warning(ex);
      return null;
    }

    StringValue result = env.createBinaryString(tempStream.getHead());
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.TestStepResult.discard()

    // if( discard && stepResult.getStatus() == TestStepStatus.OK &&
    // getTestRunnable().getDiscardOkResults()
    if( discard && stepResult.getStatus() == TestStepStatus.OK && getTestCase().getDiscardOkResults()
        && !stepResult.isDiscarded() )
    {
      stepResult.discard();
    }

    if( process && stepResult.getStatus() == TestStepStatus.FAILED )
    {
      // if( getTestRunnable().getFailOnError() )
View Full Code Here

Examples of com.liferay.faces.bridge.context.RenderRedirectWriter.discard()

      // ResponseOutputWriter has buffered up markup that must be discarded. This is because we don't want the
      // markup from the original Faces view to be included with the markup of Faces view found in the
      // redirect URL.
      if (writer instanceof RenderRedirectWriter) {
        RenderRedirectWriter responseOutputWriter = (RenderRedirectWriter) writer;
        responseOutputWriter.discard();
      }

      // Recursively call this method with the render-redirect URL so that the RENDER_RESPONSE phase of the
      // JSF lifecycle will be re-executed according to the new Faces viewId found in the redirect URL.
      execute(bridgeContext.getRenderRedirectURL());
View Full Code Here

Examples of com.piki.client.presenter.WikiPagePresenterCallback.discard()

    discard.addClickHandler(new ClickHandler() {
     
      @Override
      public void onClick(ClickEvent event) {
        try {
          if (!callback.discard())
          Window.alert("Änderung kann nicht zurückgenommen werden");
        } catch (Exception exception) {
          Window.alert("Änderung kann nicht zurückgenommen werden: " + exception.getMessage());
        }
      }
View Full Code Here

Examples of com.vaadin.data.fieldgroup.FieldGroup.discard()

        Button discardButton = new Button("Discard",
                new Button.ClickListener() {

                    @Override
                    public void buttonClick(ClickEvent event) {
                        fieldGroup.discard();
                        log.log("Discarded changes");

                    }
                });
        Button showBean = new Button("Show bean values",
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.