xjavadoc

Class UnknownClass

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

(package private) 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.

Authors:
Ara Abrahamian
Aslak Helles?y

Field Summary

static int
instanceCount

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

UnknownClass(XJavaDoc xJavaDoc, 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, 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

instanceCount

public static int instanceCount

Constructor Details

UnknownClass

public UnknownClass(XJavaDoc xJavaDoc,
                    String qualifiedName)

Parameters:
qualifiedName -

Method Details

isPrimitive

public boolean isPrimitive()
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
Specified by:
isPrimitive in interface XClass

Returns:
true if a primitive


isWriteable

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

Returns:
false since this class can not be saved


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 for sake of interface implementation
Specified by:
setDirty in interface XClass