xjavadoc

Class Primitive

Implemented Interfaces:
Comparable, Named, XClass, XProgramElement, XType

(package private) final class Primitive
extends AbstractClass

This class represents primitive types

Authors:
Ara Abrahamian
Aslak Helles?y

Field Summary

private String
_type

Fields inherited from class xjavadoc.AbstractClass

_allInterfaces, _allSubclasses, _constructors, _containingPackage, _declaredInterfaces, _directSubclasses, _extendingInterfaces, _fields, _hash, _implementingClasses, _importedClassNames, _importedClasses, _importedPackages, _innerClasses, _isAnonymous, _isInterface, _methods, _name, _namedConstructors, _namedMethods, _qualifiedName, _superclass, _transformedName, _transformedQualifiedName

Fields inherited from class xjavadoc.AbstractProgramElement

EMPTY_LIST, _containingClass, _doc, _javadocToken, _modifierString, _modifiers, _tagFactory, _token, _xJavaDoc

Constructor Summary

Primitive(XJavaDoc xJavaDoc, String name, String type)

Method Summary

XPackage
getContainingPackage()
String
getType()
boolean
isPrimitive()
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, getContainingPackage, getDeclaredInterfaces, getDirectSubclasses, getExtendingInterfaces, getField, getFields, getFields, getFields, getImplementingClasses, getImportedClasses, getImportedPackages, getInnerClasses, getInterfaces, getMembers, getMethod, getMethod, getMethodTags, getMethods, getMethods, getMethods, getName, getQualifiedName, getSuperElement, getSuperInterfaceElements, getSuperclass, getTransformedName, getTransformedQualifiedName, getType, hasImportedClasses, hasImportedPackages, hasInnerClasses, hashCode, initializeNamedConstructorsHashMap, initializeNamedMethodsHashMap, isA, isA, isAnonymous, isImplementingInterface, isImplementingInterface, isInner, isInterface, isSubclassOf, isSubclassOf, lastModified, qualify, reset, resolveImportedClasses, save, setContainingPackage, setInterface, setName, setQualifiedName, setRealised, setSuperclass, toString, updateDoc, validate

Methods inherited from class xjavadoc.AbstractProgramElement

addModifier, compareTo, getContainingAbstractClass, getContainingClass, getContainingPackage, getDoc, getModifierSpecifier, getModifiers, getTagFactory, getXJavaDoc, isAbstract, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, reset, setJavaDoc, setToken, updateDoc

Field Details

_type

private final String _type

Constructor Details

Primitive

public Primitive(XJavaDoc xJavaDoc,
                 String name,
                 String type)

Method Details

getContainingPackage

public XPackage getContainingPackage()
Specified by:
getContainingPackage in interface XClass
getContainingPackage in interface XProgramElement
Overrides:
getContainingPackage in interface AbstractClass


getType

public final String getType()
Specified by:
getType in interface XClass
Overrides:
getType in interface AbstractClass


isPrimitive

public final boolean isPrimitive()
Specified by:
isPrimitive in interface XClass


isWriteable

public boolean isWriteable()
whether this class can be saved ( it can not )
Specified by:
isWriteable in interface XClass

Returns:
always false


saveNeeded

public boolean saveNeeded()
this class is not intended to be saved
Specified by:
saveNeeded in interface XClass

Returns:
always false


setDirty

public void setDirty()
no op since it's not writeable
Specified by:
setDirty in interface XClass