|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxjavadoc.AbstractProgramElement
xjavadoc.AbstractClass
xjavadoc.SourceClass
This class represents a class for which the source code is available XJavaDocFil
Field Summary | |
static int |
instanceCount
|
Constructor Summary | |
SourceClass(SourceClass mainClass,
int dummy,
XTagFactory tagFactory)
Constructor to use for "extra" classes, that is, secondary classes that figure in the same source. |
|
SourceClass(SourceClass containingClass,
XTagFactory tagFactory)
Constructor to use for inner classes. |
|
SourceClass(XJavaDoc xJavaDoc,
AbstractFile sourceFile,
boolean useNodeParser,
XTagFactory tagFactory,
java.lang.String encoding)
Constructor to use for outer classes |
|
SourceClass(XJavaDoc xJavaDoc,
java.io.File sourceFile,
boolean useNodeParser,
XTagFactory tagFactory)
|
|
SourceClass(XJavaDoc xJavaDoc,
java.io.File sourceFile,
XTagFactory tagFactory)
Constructor to use for outer classes |
|
SourceClass(XJavaDoc xJavaDoc,
java.io.Reader sourceFile,
XTagFactory tagFactory)
Constructor to use for outer classes |
Method Summary | |
void |
addTagForValidation(DefaultXTag tag)
|
SimpleNode |
getCompilationUnit()
|
AbstractFile |
getFile()
|
static java.lang.String |
getFileName(java.lang.String qualifiedName)
Describe what the method does |
java.lang.String |
getNextAnonymousClassName()
Returns "1", "2", etc., depending on how many inner classes we have. |
java.io.Reader |
getReader()
Returns a reader for the source code. |
boolean |
isExtraClass()
|
boolean |
isPrimitive()
Returns true if this class is a primitive. |
boolean |
isWriteable()
Gets the Writeable attribute of the SourceClass object |
long |
lastModified()
Describe what the method does |
void |
print(java.io.OutputStream out)
Deprecated. use the Writer method |
void |
print(java.io.Writer out)
Prints this class to a stream |
XClass |
qualify(java.lang.String unqualifiedClassName)
Returns fully qualified name of a class. |
void |
reset()
|
java.lang.String |
save(java.io.File rootDir)
Saves the class at root dir rootDir. |
boolean |
saveNeeded()
whether class needs saving |
void |
setCompilationUnit(SimpleNode compilationUnit)
Called by JavaParser at the end of the parsing |
void |
setDirty()
say this class is dirty and needs saving propagate to outer class ( if any ) |
void |
validateTags()
Called by XJavaDoc after the entire source is parsed, but only if validation is on. |
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 |
public static int instanceCount
Constructor Detail |
public SourceClass(SourceClass containingClass, XTagFactory tagFactory)
containingClass
- The containing class;public SourceClass(SourceClass mainClass, int dummy, XTagFactory tagFactory)
mainClass
- The containing class. Or rather the "main" class in the
source.dummy
- public SourceClass(XJavaDoc xJavaDoc, java.io.File sourceFile, XTagFactory tagFactory)
sourceFile
- The file containing the sourcepublic SourceClass(XJavaDoc xJavaDoc, java.io.Reader sourceFile, XTagFactory tagFactory)
sourceFile
- The file containing the sourcepublic SourceClass(XJavaDoc xJavaDoc, java.io.File sourceFile, boolean useNodeParser, XTagFactory tagFactory)
sourceFile
- useNodeParser
- public SourceClass(XJavaDoc xJavaDoc, AbstractFile sourceFile, boolean useNodeParser, XTagFactory tagFactory, java.lang.String encoding)
sourceFile
- The file containing the sourceuseNodeParser
- Method Detail |
public static java.lang.String getFileName(java.lang.String qualifiedName)
qualifiedName
- Describe what the parameter does
public boolean isExtraClass()
public java.lang.String getNextAnonymousClassName()
public boolean isWriteable()
public SimpleNode getCompilationUnit()
public java.io.Reader getReader()
public AbstractFile getFile()
public boolean isPrimitive()
XClass
public void setDirty()
public void setCompilationUnit(SimpleNode compilationUnit)
compilationUnit
- The new CompilationUnit valuepublic void validateTags() throws TagValidationException
TagValidationException
public void addTagForValidation(DefaultXTag tag)
public boolean saveNeeded()
XClass
public long lastModified()
lastModified
in interface XClass
lastModified
in class AbstractClass
public void print(java.io.OutputStream out)
out
- public void print(java.io.Writer out)
out
- Describe what the parameter doespublic java.lang.String save(java.io.File rootDir) throws java.io.IOException
save
in interface XClass
save
in class AbstractClass
rootDir
- the root directory.
java.io.IOException
- if the file couldn't be savedpublic XClass qualify(java.lang.String unqualifiedClassName)
qualify
in interface XClass
qualify
in class AbstractClass
unqualifiedClassName
- Describe what the parameter does
public void reset()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |