xjavadoc
Class UnknownClass

java.lang.Object
  extended byxjavadoc.AbstractProgramElement
      extended byxjavadoc.AbstractClass
          extended byxjavadoc.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

Field Summary
static int instanceCount
           
 
Fields inherited from class xjavadoc.AbstractClass
 
Fields inherited from class xjavadoc.AbstractProgramElement
EMPTY_LIST
 
Constructor Summary
UnknownClass(XJavaDoc xJavaDoc, java.lang.String qualifiedName)
           
 
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
 
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

instanceCount

public static int instanceCount
Constructor Detail

UnknownClass

public UnknownClass(XJavaDoc xJavaDoc,
                    java.lang.String qualifiedName)
Parameters:
qualifiedName -
Method Detail

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:

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