|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.functions.Function
org.millscript.millscript.functions.AbstractOutputFunction
org.millscript.millscript.functions.AbstractOutputFileFunction
public abstract class AbstractOutputFileFunction
This class provides the basic methods required for a function generating files in the script output.
| Field Summary |
|---|
| Fields inherited from class org.millscript.millscript.functions.AbstractOutputFunction |
|---|
config |
| Constructor Summary | |
|---|---|
protected |
AbstractOutputFileFunction(Package pack)
Constructs a new abstract output file function for the specified package. |
| Method Summary | |
|---|---|
static boolean |
addNewPage(java.lang.String stem)
Adds the specified stem as a unique page of script output. |
abstract java.lang.String |
getDefaultExtension()
Returns the default extension for this type of file. |
Page |
newPage(org.millscript.commons.util.IList folder,
java.lang.String name,
java.lang.String extn)
Returns a new Page for a file with the specified name and extension, to be made in the specified folder. |
Page |
newPage(java.lang.String name)
Returns a new Page for a file with the specified name and default extension for this function, to be made in the current working output folder. |
Page |
newPage(java.lang.String name,
java.lang.String extn)
Returns a new Page for a file with the specified name and extension, to be made in the current working output folder. |
Page |
toPage(java.lang.Object obj)
Returns a Page for the specified object. |
| Methods inherited from class org.millscript.millscript.functions.AbstractOutputFunction |
|---|
getCurrentWorkingFolder, getCurrentWorkingFolderList, getWorkingFolder, makeCurrentWorkingFolder |
| Methods inherited from class org.millscript.millscript.functions.Function |
|---|
apply, applyUpdater, checkNargs, checkNargsGT, checkUNargs, getName, modName, reportNargsError, reportNargsGTError, setName, toString, tryClone |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractOutputFileFunction(Package pack)
pack - the package this function belongs to| Method Detail |
|---|
public static final boolean addNewPage(java.lang.String stem)
true if the stem doesn't already exist in the
script output. Subsequent calls to this method with the same stem will
return false.
stem - the new stem to try and add to the script output
true if the stem does not already exist and
false otherwisepublic abstract java.lang.String getDefaultExtension()
public final Page newPage(java.lang.String name)
name - the new file name
public final Page newPage(java.lang.String name,
java.lang.String extn)
name - the new file nameextn - the new file name extension
public final Page newPage(org.millscript.commons.util.IList folder,
java.lang.String name,
java.lang.String extn)
folder - the folder for the new filename - the new file nameextn - the new file name extension
public final Page toPage(java.lang.Object obj)
obj - the object to convert to a Page
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||