Examples of accept()


Examples of javax.lang.model.type.TypeMirror.accept()

      // TODO: implement proper property get/is/boolean detection
      if ( string.startsWith( "get" ) || string.startsWith( "is" ) ) {
        TypeMirror returnType = t.getReturnType();

        return returnType.accept( this, p );
      }
      else {
        return null;
      }
    }
View Full Code Here

Examples of javax.net.ssl.SSLServerSocket.accept()

  protected void readSocket() throws Exception
  {
    SSLServerSocket ss = checkSocket();
    while (isStarted())
    {
      SSLSocket s = (SSLSocket) ss.accept();
      try
      {
        if (session == null)
          throw new NullPointerException( "session == null" );
        session.sessionAccepted( s );
View Full Code Here

Examples of javax.swing.JFileChooser.accept()

   */
  public void test(TestHarness harness)      
  {
    JFileChooser fc = new JFileChooser();
    File f = new File(System.getProperty("user.home"));
    harness.check(fc.accept(f), true);
    harness.check(fc.accept(null), true);
   
    fc.setFileFilter(new MyFileFilter(true));
    harness.check(fc.accept(f), true);
  
View Full Code Here

Examples of javax.swing.filechooser.FileFilter.accept()

  @Override
  public void approveSelection() {
    File f = getSelectedFile();

    FileFilter ff = getFileFilter();
    if (!ff.accept(f)) {
      f = new File(f.getPath() + "." + getDefaultExtension());
    }
    super.setSelectedFile(f);
    if (f.exists() && getDialogType() == SAVE_DIALOG) {
      int result = JOptionPane.showConfirmDialog(this, "The file exists, overwrite?", "Existing file", JOptionPane.YES_NO_CANCEL_OPTION);
View Full Code Here

Examples of javax.swing.filechooser.FileNameExtensionFilter.accept()

    public void test_accept() throws Exception {
        FileNameExtensionFilter fnfe = new FileNameExtensionFilter(description, extensions);

        File file = new File("my_test.jpg");
        assertFalse(fnfe.accept(file));

        file = new File("my_test.zipp");
        assertFalse(fnfe.accept(file));

        file = new File("my_testzip");
View Full Code Here

Examples of javax.ws.rs.client.Invocation.Builder.accept()

        checkNull(link);
        checkClosed();
        Builder builder = target(link.getUriBuilder()).request();
        String type = link.getType();
        if (type != null) {
            builder.accept(type);
        }
        return builder;
    }

    @Override
View Full Code Here

Examples of jdk.internal.org.objectweb.asm.ClassReader.accept()

                }
                out.putNextEntry(ze);
                if (ze.getName().endsWith(".class")) {
                    ClassReader cr = new ClassReader(zf.getInputStream(ze));
                    // cr.accept(new ClassDump(), 0);
                    cr.accept(new ClassVerifier(), 0);
                }
                InputStream is = zf.getInputStream(ze);
                int n;
                do {
                    n = is.read(buf, 0, buf.length);
View Full Code Here

Examples of jdk.internal.org.objectweb.asm.signature.SignatureReader.accept()

        SignatureWriter w = new SignatureWriter();
        SignatureVisitor a = createRemappingSignatureAdapter(w);
        if (typeSignature) {
            r.acceptType(a);
        } else {
            r.accept(a);
        }
        return w.toString();
    }

    protected SignatureVisitor createRemappingSignatureAdapter(
View Full Code Here

Examples of jetbrick.template.parser.grammer.JetTemplateParser.Define_expression_listContext.accept()

        scopeCode.define(Code.CONTEXT_NAME, TypedKlass.JetContext);

        // 处理参数
        Define_expression_listContext define_expression_list = ctx.define_expression_list();
        if (define_expression_list != null) {
            SegmentListCode define_list_code = (SegmentListCode) define_expression_list.accept(this);
            macroCode.setDefineListCode(define_list_code);

            // 设置参数 Context
            for (SegmentCode node : define_list_code.getChildren()) {
                DefineExpressionCode c = (DefineExpressionCode) node;
View Full Code Here

Examples of jetbrick.template.parser.grammer.JetTemplateParser.Else_directiveContext.accept()

        }

        // else ...
        Else_directiveContext else_directive = ctx.else_directive();
        if (else_directive != null) {
            code.addChild(else_directive.accept(this));
        }

        return code;
    }
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.