// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) deadcode 
// Source File Name:   JavadocClassReader.java

package com.sun.tools.javadoc;

import com.sun.tools.javac.v8.code.ClassReader;
import com.sun.tools.javac.v8.util.Context;
import java.io.File;

// Referenced classes of package com.sun.tools.javadoc:
//            DocEnv, PackageDocImpl

class JavadocClassReader extends ClassReader
{

    private JavadocClassReader(Context context)
    {
        ClassReader(context, true);
        context.put(javadocClassReaderKey, this);
        docenv = DocEnv.instance(context);
    }

    public static JavadocClassReader instance0(Context context)
    {
        JavadocClassReader javadocclassreader = (JavadocClassReader)context.get(javadocClassReaderKey);
        if(javadocclassreader == null)
            javadocclassreader = new JavadocClassReader(context);
        return javadocclassreader;
    }

    protected void extraFileActions(com.sun.tools.javac.v8.code.Symbol.PackageSymbol packagesymbol, String s, File file)
    {
        if(docenv != null && s.equals("package.html"))
            docenv.getPackageDoc(packagesymbol).setDocPath(file.getAbsolutePath());
    }

    protected void extraZipFileActions(com.sun.tools.javac.v8.code.Symbol.PackageSymbol packagesymbol, String s, String s1, String s2)
    {
        if(docenv != null && s.endsWith("package.html"))
            docenv.getPackageDoc(packagesymbol).setDocPath(s2, s1);
    }

    private static final com.sun.tools.javac.v8.util.Context.Key javadocClassReaderKey = new Key();
    private DocEnv docenv;

}
