xjavadoc
Class UnknownClass
java.lang.Object
xjavadoc.AbstractProgramElement
xjavadoc.AbstractClass
xjavadoc.UnknownClass
- All Implemented Interfaces:
- java.lang.Comparable, Named, XClass, XProgramElement, XType
- final class UnknownClass
- extends AbstractClass
This implementation of XClass is used for classes that can't be resolved from
either source or classpath (binary classes). It's useful for XDocletImpl,
especially when classes refer to classes that are going to be generated by
XDocletImpl.
- Author:
- Ara Abrahamian, Aslak Helles�y
Method Summary |
boolean |
isPrimitive()
Returns true if this class is a primitive. |
boolean |
isWriteable()
whether this class can be saved ( it cannot ) |
boolean |
saveNeeded()
this class is not intended to be saved |
void |
setDirty()
no op for sake of interface implementation |
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, getMethod, getMethod, getMethods, getMethods, getMethods, getMethodTags, getName, getQualifiedName, getSuperclass, getSuperElement, getSuperInterfaceElements, getTransformedName, getTransformedQualifiedName, getType, 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 |
instanceCount
public static int instanceCount
UnknownClass
public UnknownClass(XJavaDoc xJavaDoc,
java.lang.String qualifiedName)
- Parameters:
qualifiedName
-
isWriteable
public boolean isWriteable()
- whether this class can be saved ( it cannot )
- Returns:
- false since this class can not be saved
isPrimitive
public boolean isPrimitive()
- Description copied from interface:
XClass
- Returns true if this class is a primitive. That is, one of the following:
- boolean
- byte
- char
- double
- float
- int
- long
- short
- java.lang.Boolean
- java.lang.Byte
- java.lang.Character
- java.lang.Double
- java.lang.Float
- java.lang.Integer
- java.lang.Long
- java.lang.Short
- java.lang.String
- Returns:
- true if a primitive
setDirty
public void setDirty()
- no op for sake of interface implementation
saveNeeded
public boolean saveNeeded()
- this class is not intended to be saved
- Returns:
- always false