xjavadoc
Class Primitive

java.lang.Object
  extended by xjavadoc.AbstractProgramElement
      extended by xjavadoc.AbstractClass
          extended by xjavadoc.Primitive
All Implemented Interfaces:
java.lang.Comparable, Named, XClass, XProgramElement, XType

final class Primitive
extends AbstractClass

This class represents primitive types

Author:
Ara Abrahamian, Aslak Helles�y

Field Summary
private  java.lang.String _type
           
 
Fields inherited from class xjavadoc.AbstractProgramElement
EMPTY_LIST
 
Constructor Summary
Primitive(XJavaDoc xJavaDoc, java.lang.String name, java.lang.String type)
           
 
Method Summary
 XPackage getContainingPackage()
          Describe what the method does
 java.lang.String getType()
          Gets the type, e.g.
 boolean isPrimitive()
          Returns true if this class is a primitive.
 boolean isWriteable()
          whether this class can be saved ( it can not )
 boolean saveNeeded()
          this class is not intended to be saved
 void setDirty()
          no op since it's not writeable
 
Methods inherited from class xjavadoc.AbstractClass
addConstructor, addField, addImportedClass, addImportedPackage, addInnerClass, addInterface, addMethod, compareTo, equals, getAllSubclasses, getConstructor, getConstructors, getDeclaredInterfaces, getDirectSubclasses, getExtendingInterfaces, getField, getFields, getFields, getFields, getImplementingClasses, getImportedClasses, getImportedPackages, getInnerClasses, getInterfaces, getMethod, getMethod, getMethods, getMethods, getMethods, getMethodTags, getName, getQualifiedName, getSuperclass, getSuperElement, getSuperInterfaceElements, getTransformedName, getTransformedQualifiedName, hashCode, hasImportedClasses, hasImportedPackages, hasInnerClasses, isA, isA, isAnonymous, isImplementingInterface, isImplementingInterface, isInner, isInterface, isSubclassOf, isSubclassOf, lastModified, qualify, reset, resolveImportedClasses, save, setContainingPackage, setInterface, setName, setQualifiedName, setRealised, setSuperclass, toString, updateDoc
 
Methods inherited from class xjavadoc.AbstractProgramElement
addModifier, getContainingAbstractClass, getContainingClass, getDoc, getModifiers, getModifierSpecifier, getTagFactory, getXJavaDoc, isAbstract, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, setToken
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface xjavadoc.XClass
getContainingClass, isAbstract
 
Methods inherited from interface xjavadoc.XProgramElement
getDoc, getModifiers, getModifierSpecifier, getXJavaDoc, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic
 

Field Detail

_type

private final java.lang.String _type
Constructor Detail

Primitive

public Primitive(XJavaDoc xJavaDoc,
                 java.lang.String name,
                 java.lang.String type)
Method Detail

getType

public final java.lang.String getType()
Description copied from interface: XClass
Gets the type, e.g. java.lang.String.class or java.lang.Integer.TYPE .

Specified by:
getType in interface XClass
Overrides:
getType in class AbstractClass
Returns:
the qualified class name.

isPrimitive

public final boolean isPrimitive()
Description copied from interface: XClass
Returns true if this class is a primitive. That is, one of the following:

Returns:
true if a primitive

isWriteable

public boolean isWriteable()
whether this class can be saved ( it can not )

Returns:
always false

getContainingPackage

public XPackage getContainingPackage()
Description copied from class: AbstractClass
Describe what the method does

Specified by:
getContainingPackage in interface XClass
Specified by:
getContainingPackage in interface XProgramElement
Overrides:
getContainingPackage in class AbstractClass
Returns:
Describe the return value

setDirty

public void setDirty()
no op since it's not writeable


saveNeeded

public boolean saveNeeded()
this class is not intended to be saved

Returns:
always false