xjavadoc

Class UnknownClass

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 Hellesxy

UNKNOWN: February 17, 2002

Field Summary
static intinstanceCount
Constructor Summary
UnknownClass(XJavaDoc xJavaDoc, String qualifiedName)
Method Summary
booleanisPrimitive()
booleanisWriteable()
whether this class can be saved ( it cannot )
booleansaveNeeded()
this class is not intended to be saved
voidsetDirty()
no op for sake of interface implementation

Field Detail

instanceCount

public static int instanceCount

Constructor Detail

UnknownClass

public UnknownClass(XJavaDoc xJavaDoc, String qualifiedName)

Parameters: qualifiedName

UNKNOWN: We're setting super to java.lang.Object, but if an instance represents an unknown interface, then the superclass should be null. How do we know whether an instance represents a class or an interface? (Aslak)

Method Detail

isPrimitive

public boolean isPrimitive()

isWriteable

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

Returns: false since this class can not be saved

saveNeeded

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

Returns: always false

setDirty

public void setDirty()
no op for sake of interface implementation