xjavadoc

Class BinaryClass

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

(package private) final class BinaryClass
extends AbstractClass

Describe what this class does

Authors:
Ara Abrahamian
Aslak Helles?y

Field Summary

private Class
_clazz
private boolean
_isInterfacesSet
private boolean
_isSuperclassSet
private static List
_primitiveTypes
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

BinaryClass(XJavaDoc xJavaDoc, Class clazz)

Method Summary

private static int
getDimension(Class c)
List
getInterfaces()
XClass
getSuperclass()
private static String
getTypeName(Class c)
private boolean
isClassImplementingInterface(Class cur_class, String full_qualified_type_name, boolean superclasses)
boolean
isImplementingInterface(String full_qualified_type_name, boolean superclasses)
boolean
isPrimitive()
boolean
isSubclassOf(String full_qualified_type_name, boolean superclasses)
boolean
isWriteable()
whether this class is writeable an can be save ( it can not )
private void
populateExecutableMember(AbstractExecutableMember executableMember, AccessibleObject accessibleObject)
boolean
saveNeeded()
this class is not intended to be saved
private void
setConstructors(Class clazz)
Discovers constructors.
void
setDirty()
no op since we do not save binary classes
private void
setInterfacesMaybe()
private void
setMethods(Class clazz)
Discovers constructors.
private void
setSuperclassMaybe()

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

_clazz

private final Class _clazz


_isInterfacesSet

private boolean _isInterfacesSet


_isSuperclassSet

private boolean _isSuperclassSet


_primitiveTypes

private static final List _primitiveTypes


instanceCount

public static int instanceCount

Constructor Details

BinaryClass

public BinaryClass(XJavaDoc xJavaDoc,
                   Class clazz)

Method Details

getDimension

private static int getDimension(Class c)


getInterfaces

public List getInterfaces()
Specified by:
getInterfaces in interface XClass
Overrides:
getInterfaces in interface AbstractClass


getSuperclass

public XClass getSuperclass()
Specified by:
getSuperclass in interface XClass
Overrides:
getSuperclass in interface AbstractClass


getTypeName

private static String getTypeName(Class c)


isClassImplementingInterface

private boolean isClassImplementingInterface(Class cur_class,
                                             String full_qualified_type_name,
                                             boolean superclasses)


isImplementingInterface

public boolean isImplementingInterface(String full_qualified_type_name,
                                       boolean superclasses)
Specified by:
isImplementingInterface in interface XClass
Overrides:
isImplementingInterface in interface AbstractClass


isPrimitive

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


isSubclassOf

public boolean isSubclassOf(String full_qualified_type_name,
                            boolean superclasses)
Specified by:
isSubclassOf in interface XClass
Overrides:
isSubclassOf in interface AbstractClass


isWriteable

public boolean isWriteable()
whether this class is writeable an can be save ( it can not )
Specified by:
isWriteable in interface XClass

Returns:
false since this class can not be mutated or saved


populateExecutableMember

private void populateExecutableMember(AbstractExecutableMember executableMember,
                                      AccessibleObject accessibleObject)


saveNeeded

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

Returns:
always false


setConstructors

private void setConstructors(Class clazz)
Discovers constructors. This method is currently never called

Parameters:
clazz -


setDirty

public void setDirty()
no op since we do not save binary classes
Specified by:
setDirty in interface XClass


setInterfacesMaybe

private void setInterfacesMaybe()


setMethods

private void setMethods(Class clazz)
Discovers constructors. This method is currently never called

Parameters:
clazz -


setSuperclassMaybe

private void setSuperclassMaybe()