|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.presents.tools.SourceFile
public class SourceFile
Reads in a source file, allows the replacement of a "generated fields" and "generated methods" section and writing of the file back out to the disk.
| Constructor Summary | |
|---|---|
SourceFile()
|
|
| Method Summary | |
|---|---|
boolean |
containsString(String text)
Returns true if the supplied text appears in the non-auto-generated section. |
String |
generate(String fsection,
String msection)
Writes the code out to the specified file. |
void |
readFrom(File source)
Reads the code from the supplied source file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceFile()
| Method Detail |
|---|
public void readFrom(File source)
throws IOException
IOExceptionpublic boolean containsString(String text)
public String generate(String fsection,
String msection)
throws IOException
fsection - the new "generated fields" to write to the file, or null.msection - the new "generated methods" to write to the file, or null.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||