|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.summary.Summary
org.acm.seguin.summary.FileSummary
public class FileSummary
Stores a summary of a java file
Field Summary |
---|
Fields inherited from class org.acm.seguin.summary.Summary |
---|
modifiers |
Fields inherited from interface net.sourceforge.jrefactory.ast.ModifierHolder |
---|
ABSTRACT, EXPLICIT, FINAL, INTERFACE, names, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICTFP, SYNCHRONIZED, TRANSIENT, VOLATILE |
Constructor Summary | |
---|---|
protected |
FileSummary(Summary parentSummary,
java.io.File initFile)
Creates a file map |
Method Summary | |
---|---|
java.lang.Object |
accept(SummaryVisitor visitor,
java.lang.Object data)
Provide method to visit a node |
protected void |
add(ImportSummary importSummary)
Add an import summary |
protected void |
add(TypeSummary typeSummary)
Add an type summary |
java.io.File |
getFile()
Return the file |
static FileSummary |
getFileSummary(java.io.File file)
Get the file summary for a particular file |
static FileSummary |
getFileSummary(java.lang.String buffer)
Get the file summary for a particular file |
java.util.Iterator |
getImports()
Return the list of imports |
protected static java.lang.String |
getKey(java.io.File file)
Get the key that is used to index the files |
java.lang.String |
getName()
Return the name of the file |
int |
getTypeCount()
Counts the types stored in the file |
java.util.Iterator |
getTypes()
Get the list of types stored in this file |
boolean |
isDeleted()
Has this file been deleted |
boolean |
isMoving()
Is this file moving to a new package |
static FileSummary |
reloadFromBuffer(java.io.File file,
java.io.Reader input)
This method allows JBuilder to load a file summary from the buffer |
static void |
removeAll()
Removes all the files from the system |
static void |
removeDeletedSummaries()
Remove any file summaries that have been deleted |
static void |
removeFileSummary(java.io.File file)
Remove the file summary for a particular file |
void |
setDeleted(boolean way)
Mark whether this file should be deleted |
void |
setMoving(boolean way)
Change whether this file is moving or not |
java.lang.String |
toString()
Description of the Method |
Methods inherited from class org.acm.seguin.summary.Summary |
---|
addModifier, copyModifiers, getDeclarationLine, getEndLine, getModifiers, getModifiersString, getParent, getStartLine, isAbstract, isExplicit, isFinal, isInterface, isNative, isPackage, isPrivate, isProtected, isPublic, isStatic, isStrictFP, isSynchronized, isTransient, isVolatile, setAbstract, setAbstract, setCode, setEndLine, setFinal, setModifiers, setPrivate, setPrivate, setProtected, setProtected, setPublic, setPublic, setStartLine, setStatic, setStatic, setStrict, setSynchronized, setSynchronized, toStandardOrderString, toStringAlphabetical |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected FileSummary(Summary parentSummary, java.io.File initFile)
parentSummary
- the parent summaryinitFile
- the fileMethod Detail |
---|
public void setDeleted(boolean way)
way
- the way that this parameter is changingpublic void setMoving(boolean way)
way
- the way that this parameter is changingpublic java.io.File getFile()
public static FileSummary getFileSummary(java.io.File file)
file
- the file we are looking up
public static FileSummary getFileSummary(java.lang.String buffer)
buffer
- the buffer that is used to load the summary
public java.util.Iterator getImports()
protected static java.lang.String getKey(java.io.File file)
file
- the file we are using to find the key
public java.lang.String getName()
getName
in class Summary
public int getTypeCount()
public java.util.Iterator getTypes()
public boolean isDeleted()
public boolean isMoving()
public java.lang.Object accept(SummaryVisitor visitor, java.lang.Object data)
accept
in class Summary
visitor
- the visitordata
- the data for the visit
protected void add(ImportSummary importSummary)
importSummary
- the summary of what was importedprotected void add(TypeSummary typeSummary)
typeSummary
- the summary of the typepublic static FileSummary reloadFromBuffer(java.io.File file, java.io.Reader input)
file
- the fileinput
- the input stream
public static void removeAll()
public static void removeDeletedSummaries()
public static void removeFileSummary(java.io.File file)
file
- the file we are looking uppublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |