|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ccg.util.Convert
com.ccg.util.TagLookup
com.ccg.util.CommandLineUtility
com.ccg.macros.at.All
public class All
A simple command line utility that can be used to test all Base classes in the package.
This simple test utility creates a AtMacros
object, registers and installs ALL (Core, Html, etc) of the Base derived macro handlers defined
in the package. And then processes the standard input out to the
standard output.
The end result is a fairly powerful macro processing language (I use it all the time to generate/tweak HTML code).
The following command line options are recognized:
You can use many of the standard command line options which the
CommandLineUtility class recognizes. In
addtion, the following command line options are recognized:
To get a rough idea of ALL of the available macros, try running it in the following manner:
echo "@htmlDumpDefinitions()" | java com.ccg.macros.at.All > defs.html
AtMacros,
Base| Constructor Summary | |
|---|---|
All(String[] args)
Initializes object with a set of command line arguments. |
|
| Method Summary | |
|---|---|
static AtMacros |
createAtMacros()
Create a new AtMacros object and install all standard macros. |
static void |
installAll(AtMacros am)
Global static method to install ALL of the macro handler objects available in this package. |
static void |
main(String[] args)
Main entry point into the application. |
void |
run()
Runs the macro processor. |
| Methods inherited from class com.ccg.util.CommandLineUtility |
|---|
getFiles, getInputStream, getLineNumberReader, getOutputStream, getPrintWriter, getStrings, setInputStream, setOutputStream |
| Methods inherited from class com.ccg.util.TagLookup |
|---|
get, getBoolean, getChoice, getColor, getDate, getDate, getFont, getIndexedList, getInputStream, getLocale, getLookup, getNumber, getNumber, getOutputStream, getString, getString, getStrings, getTag, getTimeSpan, getTimeSpan, setLookup, setTag |
| Methods inherited from class com.ccg.util.Convert |
|---|
choiceValue, getDateFormat, getNumberFormat, setDateFormat, setNumberFormat, toBoolean, toColor, toDate, toFont, toInputStream, toLocale, toNumber, toOutputStream, toString, toTimeSpan |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public All(String[] args)
This constructor initializes the object with the set of
command line arguments to use when its run(). However,
this is about all that is done (we don't actually verify the
arguments at this point).
| Method Detail |
|---|
public void run()
This method checks the command line arguments, and then runs the source file through the macro processor writing the results to the standard output device.
run in interface Runnablerun in class CommandLineUtilitypublic static void installAll(AtMacros am)
This method installs ALL of the Base derived
macro handlers which one can find in this class. This is an easy
way to make sure that ALL of the macros defined in the com.ccg.macros.at package are loaded and available to your
interpreter.
am - The AtMacros object to register all of the
macros with. Must not be null.public static AtMacros createAtMacros()
AtMacros object and install all standard macros.
This is a convenience method. It constructs and initializes a
AtMacros object for you in one shot.
AtMacros object with ALL of
the standard macros installed.AtMacrospublic static void main(String[] args)
args - Array of command line arguments.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||