Examples of Doc


Examples of com.sun.javadoc.Doc

      className = linkText;
      methodSig = null;
    }

    ClassDoc containingClass = null;
    Doc holder = tag.holder();
    if (holder instanceof ClassDoc) {
      containingClass = (ClassDoc) holder;
    } else if (holder instanceof MemberDoc) {
      containingClass = ((MemberDoc) holder).containingClass();
    }
View Full Code Here

Examples of com.sun.javadoc.Doc

    }
    return null;
  }

  private MethodDoc getSuperMethodDoc(ClassDoc classDoc) {
    Doc doc = DocMap.getDocByQualifiedName(classDoc.qualifiedName()+"#"+name(),false);
    return doc instanceof MethodDoc ? (MethodDoc)doc : null;
  }
View Full Code Here

Examples of com.sun.research.ws.wadl.Doc

                    ? requestURI.relativize(schemaURI).toString()
                    : schemaURI.toString();

            Include include = new Include();
            include.setHref(schemaPath);
            Doc doc = new Doc();
            doc.setLang("en");
            doc.setTitle("Generated");
            include.getDoc().add(doc);

            // Finally add to list
            grammars.getInclude().add(include);
        }
View Full Code Here

Examples of com.sun.research.ws.wadl.Doc

     */
    public Resource createResource( AbstractResource r, String path ) {
        final Resource result = _delegate.createResource( r, path );
        final ClassDocType classDoc = _resourceDoc.getClassDoc( r.getResourceClass() );
        if ( classDoc != null && !isEmpty( classDoc.getCommentText() ) ) {
            final Doc doc = new Doc();
            doc.getContent().add( classDoc.getCommentText() );
            result.getDoc().add( doc );
        }
        return result;
    }
View Full Code Here

Examples of com.sun.research.ws.wadl.Doc

     */
    public Method createMethod( AbstractResource r, AbstractResourceMethod m ) {
        final Method result = _delegate.createMethod( r, m );
        final MethodDocType methodDoc = _resourceDoc.getMethodDoc( r.getResourceClass(), m.getMethod() );
        if ( methodDoc != null && !isEmpty( methodDoc.getCommentText() ) ) {
            final Doc doc = new Doc();
            doc.getContent().add( methodDoc.getCommentText() );
            // doc.getOtherAttributes().put( new QName( "xmlns" ), "http://www.w3.org/1999/xhtml" );
            result.getDoc().add( doc );
        }
        return result;
    }
View Full Code Here

Examples of com.sun.research.ws.wadl.Doc

        return responses;
    }

    private void addDocForExample( final List<Doc> docs, final String example ) {
        if ( !isEmpty( example ) ) {
            final Doc doc = new Doc();
           
            final Elements pElement = Elements.el( "p" )
                .add( Elements.val( "h6", "Example" ) )
                .add( Elements.el( "pre" ).add( Elements.val( "code", example ) ) );
           
            doc.getContent().add( pElement );
            docs.add( doc );
        }
    }
View Full Code Here

Examples of com.sun.research.ws.wadl.Doc

        }
    }
   
    private void addDoc( final List<Doc> docs, final String text ) {
        if ( !isEmpty( text ) ) {
            final Doc doc = new Doc();
            doc.getContent().add( text );
            docs.add( doc );
        }
    }
View Full Code Here

Examples of com.sun.research.ws.wadl.Doc

                             AbstractMethod m, Parameter p) {
        final Param result = _delegate.createParam(r, m, p);
        if (result != null) {
            final ParamDocType paramDoc = _resourceDoc.getParamDoc( r.getResourceClass(), (m == null ? null : m.getMethod()), p );
            if(paramDoc != null && !isEmpty( paramDoc.getCommentText())) {
                final Doc doc = new Doc();
                doc.getContent().add( paramDoc.getCommentText() );
                result.getDoc().add( doc );
            }
        }
        return result;
    }
View Full Code Here

Examples of com.sun.research.ws.wadl.Doc

        return wadlApplication;
    }

    private void addVersion(Application wadlApplication) {
        // Include Jersey version as doc element with generatedBy attribute
        Doc d = new Doc();
        d.getOtherAttributes().put(new QName("http://jersey.java.net/", "generatedBy", "jersey"),
                BuildId.getBuildId());
        wadlApplication.getDoc().add(0, d);
    }
View Full Code Here

Examples of de.pdf_scrutinizer.API.app.Doc

        ContextAction action = new ContextAction() {
            public Object run(Context cx) {
                log.info("initializing Rhino JavaScript engine...");
                cx.setOptimizationLevel(-1); // Interpreter mode

                Doc doc = document; //global 'this'-object

                //define methods of doc object
                String[] names = {
                        "getPageNumWords",
                        "getPageNthWord",
                        "selectPageNthWord",
                        "syncAnnotScan",
                        "getAnnots",
                        "getAnnot",
                        "getField",
                        "getURL",
                        "isBoxChecked",
                        "printSeps",
                        "breakpoint", //dummy
                };
                //TODO: problem: no overloading allowed

                doc.defineFunctionProperties(names, Doc.class, ScriptableObject.DONTENUM);

                Scriptable scope = cx.initStandardObjects(doc);
                cx.putThreadLocal("topscope", scope);
                cx.putThreadLocal("scrutinizer", scrutinizer);
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.