|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.sandev.sandbuild.SandDecl
public class SandDecl
The primary source information passed to a SandGenerator. When the generator receives a SandDecl, all the fields are ready for use, but initialization actually happens in stages:
SandProject initially loads the SandDecl,
setting the declType and sourceFile
fields. The SandProject keeps a record of the SandDecls it found
each time, so it can track deletions on incremental builds. The
SandProject marks any deleted declarations as
STATUS_DELETED when it does this merge.
status and
qualifiedName fields from the type and source
information. See the init method for details.
GenDriverDoclet sets the corresponding
ClassDoc field by merging the classes retrieved from the RootDoc
with the known SandDecls. This is done using the qualifiedName.
| Field Summary | |
|---|---|
protected com.sun.javadoc.ClassDoc |
cd
The ClassDoc for this declaration. |
protected int |
declType
What kind of SAND declaration this is. |
protected java.lang.String |
qualifiedName
The fully qualified name of this declaration. |
protected java.io.File |
sourceFile
The full source file for this declaration. |
protected int |
status
The status of this declaration. |
static int |
STATUS_CHANGED
this declaration has changed since the last build |
static int |
STATUS_DELETED
this declaration has been deleted since the last build. |
static int |
STATUS_NEW
this declaration has been created after the last build |
static int |
STATUS_UNCHANGED
this declaration has NOT changed since the last build |
static int |
TYPE_NODE
This is a node declaration |
static int |
TYPE_STRUCT
This is a struct declartion |
| Constructor Summary | |
|---|---|
SandDecl()
The default ctor does nothing. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object other)
The natural ordering of SandDecls is the natural ordering of their source files. |
com.sun.javadoc.ClassDoc |
getClassDoc()
accessor for ClassDoc |
int |
getDeclType()
accessor for declType |
java.lang.String |
getQualifiedName()
accessor for qualifiedName |
java.io.File |
getSourceFile()
accessor for sourceFile |
int |
getStatus()
accessor for status |
java.lang.String |
getUnqualifiedName()
Get the unqualified name of this declaration. |
boolean |
hasChanged()
Returns true if this SAND declaration is NOT STATUS_UNCHANGED |
void |
init()
Set the qualifiedName from our source, and update our status. |
protected java.lang.String |
qualifiedNameFromSource(java.lang.String srcFileName)
Given a file specification, return the corresponding qualified class name. |
void |
setClassDoc(com.sun.javadoc.ClassDoc doc)
mutator for ClassDoc |
void |
setDeclType(int val)
mutator for declType |
void |
setQualifiedName(java.lang.String name)
mutator for qualifiedName |
void |
setSourceFile(java.io.File src)
mutator for sourceFile |
void |
setStatus(int val)
mutator for status |
static java.lang.String |
statusToString(int status)
Return the current status as a string. |
void |
updateStatus()
Figure out our change status from our source file and a known target file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_STRUCT
public static final int TYPE_NODE
protected int declType
public static final int STATUS_UNCHANGED
public static final int STATUS_CHANGED
public static final int STATUS_NEW
public static final int STATUS_DELETED
protected int status
protected com.sun.javadoc.ClassDoc cd
protected java.io.File sourceFile
protected java.lang.String qualifiedName
| Constructor Detail |
|---|
public SandDecl()
| Method Detail |
|---|
public int getDeclType()
public void setDeclType(int val)
public static java.lang.String statusToString(int status)
public int getStatus()
public void setStatus(int val)
public boolean hasChanged()
public void updateStatus()
throws SandBuildException
SandBuildExceptionpublic com.sun.javadoc.ClassDoc getClassDoc()
public void setClassDoc(com.sun.javadoc.ClassDoc doc)
public java.io.File getSourceFile()
public void setSourceFile(java.io.File src)
public java.lang.String getQualifiedName()
public void setQualifiedName(java.lang.String name)
public java.lang.String getUnqualifiedName()
public int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparable
public void init()
throws SandBuildException
SandBuildException
protected java.lang.String qualifiedNameFromSource(java.lang.String srcFileName)
throws SandBuildException
SandBuildException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||