Java Code Examples for com.sun.tools.doclets.internal.toolkit.Configuration

Following code examples demonstrate how to use com.sun.tools.doclets.internal.toolkit.Configurationfrom java. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use com.sun.tools.doclets.internal.toolkit.Configurationand various code implementation of this class.

    static synchronized DocFileFactory getFactory(Configuration configuration) {
        DocFileFactory f = factories.get(configuration);
        if (f == null) {
            JavaFileManager fm = configuration.getFileManager();
            if (fm instanceof StandardJavaFileManager) {
                f = new StandardDocFileFactory(configuration);
            } else {
                throw new IllegalStateException();
            }
            factories.put(configuration, f);
        }
        return f;
    } 


            if (fm instanceof StandardJavaFileManager) {
                f = new StandardDocFileFactory(configuration);
            } else {
                throw new IllegalStateException();
            } 

    private static void assertAddTrailingFileSep(String input, String expectedOutput) {
        String output = Configuration.addTrailingFileSep(input);
        if (!expectedOutput.equals(output)) {
            throw new Error("expected " + expectedOutput + " but was " + output);
        }
    } 

    private void configureCustomTaglets() {

        Configuration conf = doclet.configuration;
        customTaglets = getTagletManager().getCustomTaglets();

        for (RecommendersTaglet taglet : customTaglets) {
            
            taglet.initialize();
            conf.tagletManager.addCustomTag(taglet);
        }
    } 

    }

    private void B(String s)
    {
        H h = ydoc.A.A.H.J();
        h.B(s);
        I = h.C() == 0xb897d;
        C = h.C() == 0xb9925;
        if(G.A)
        {
            if(I)
                I();
            else
                A();
            String s1 = h.D();
            String s2 = h.F();
            if(s1 != null && s1.trim().length() > 0)
            {
                if(s2 == null || s2.trim().length() == 0)
                    s2 = C.B.A();
                C.B = new ydoc.B.C._A(s1, s2);
            }
        }
    } 

Advertisement
Javadoc
Configure the output based on the options. Doclets should sub-class Configuration, to configure and

add their own options. This class contains all user options which are supported by the 1.1 doclet and the standard doclet.

This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice. @author Robert Field. @author Atul Dambalkar. @author Jamie Ho

Read More
Advertisement