// 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:   ThrowsTagImpl.java

package com.sun.tools.javadoc;

import com.sun.javadoc.*;

// Referenced classes of package com.sun.tools.javadoc:
//            TagImpl, ClassDocImpl, Comment, ExecutableMemberDocImpl, 
//            DocImpl

class ThrowsTagImpl extends TagImpl
    implements ThrowsTag
{

    public ClassDoc exception()
    {
        ClassDocImpl classdocimpl;
        if(!(holder instanceof ExecutableMemberDoc))
        {
            classdocimpl = null;
        } else
        {
            ExecutableMemberDocImpl executablememberdocimpl = (ExecutableMemberDocImpl)holder;
            ClassDocImpl classdocimpl1 = (ClassDocImpl)executablememberdocimpl.containingClass();
            classdocimpl = (ClassDocImpl)classdocimpl1.findClass(exceptionName);
        }
        return classdocimpl;
    }

    public Tag[] inlineTags()
    {
        return Comment.getInlineTags(holder, exceptionComment());
    }

    public String exceptionComment()
    {
        return exceptionComment;
    }

    public String exceptionName()
    {
        return exceptionName;
    }

    public String kind()
    {
        return "@throws";
    }

    ThrowsTagImpl(DocImpl docimpl, String s, String s1)
    {
        TagImpl(docimpl, s, s1);
        String as[] = divideAtWhite();
        exceptionName = as[0];
        exceptionComment = as[1];
    }

    private final String exceptionName;
    private final String exceptionComment;
}
