public Taglet[] getCustomTaglets(Doc doc) {
        if (doc instanceof ConstructorDoc) {
            return getConstructorCustomTaglets();
        } else if (doc instanceof MethodDoc) {
            return getMethodCustomTaglets();
        } else if (doc instanceof FieldDoc) {
            return getFieldCustomTaglets();
        } else if (doc instanceof ClassDoc) {
            return getTypeCustomTaglets();
        } else if (doc instanceof PackageDoc) {
            return getPackageCustomTaglets();
        } else if (doc instanceof RootDoc) {
            return getOverviewCustomTaglets();
        }
        return null;
    }
public Taglet [ ] getCustomTaglets ( Doc doc ) { if ( doc instanceof ConstructorDoc ) { return getConstructorCustomTaglets ( ) ; } else if ( doc instanceof MethodDoc ) { return getMethodCustomTaglets ( ) ; } else if ( doc instanceof FieldDoc ) { return getFieldCustomTaglets ( ) ; } else if ( doc instanceof ClassDoc ) { return getTypeCustomTaglets ( ) ; } else if ( doc instanceof PackageDoc ) { return getPackageCustomTaglets ( ) ; } else if ( doc instanceof RootDoc ) { return getOverviewCustomTaglets ( ) ; } return null ; }
@return the array of <code>Taglet</code>s that can
appear in the given Doc.