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

package com.sun.tools.javadoc;

import com.sun.javadoc.ClassDoc;
import com.sun.javadoc.Type;

class PrimitiveType
    implements Type
{

    public boolean isArrayType()
    {
        return false;
    }

    public boolean isPrimitiveJavaType()
    {
        return true;
    }

    public ClassDoc asClassDoc()
    {
        return null;
    }

    public String dimension()
    {
        return "";
    }

    public String qualifiedTypeName()
    {
        return name;
    }

    public String toString()
    {
        return qualifiedTypeName();
    }

    public String typeName()
    {
        return name;
    }

    PrimitiveType(String s)
    {
        name = s;
    }

    private final String name;
    static final PrimitiveType voidType = new PrimitiveType("void");
    static final PrimitiveType booleanType = new PrimitiveType("boolean");
    static final PrimitiveType byteType = new PrimitiveType("byte");
    static final PrimitiveType charType = new PrimitiveType("char");
    static final PrimitiveType shortType = new PrimitiveType("short");
    static final PrimitiveType intType = new PrimitiveType("int");
    static final PrimitiveType longType = new PrimitiveType("long");
    static final PrimitiveType floatType = new PrimitiveType("float");
    static final PrimitiveType doubleType = new PrimitiveType("double");
    static final PrimitiveType errorType = new PrimitiveType("");

}
