C D E F G I J L M P R S T U

C

capitalize(String) - Static method in class jatha.MacroUtil
Capitalize the first character in a String.
CLASS - class macros.CLASS.
CLASS(name)
CLASS() - Constructor for class macros.CLASS
 
clip(String, int, int) - Static method in class jatha.MacroUtil
Removes characters from both ends of a string.
createMacro(String, Expander) - Method in class jatha.DefaultMacroFactory
 
createMacro(String, Expander) - Method in interface jatha.MacroFactory
Returns null if this factory can't create the requested macro
CTOR - class macros.CTOR.
CTOR(prop1, prop2, ...)
CTOR() - Constructor for class macros.CTOR
 

D

DefaultMacroFactory - class jatha.DefaultMacroFactory.
This macro factory tries to create macros by dynamically loading a class in the "macros" package with the same name as the macro call.
DefaultMacroFactory() - Constructor for class jatha.DefaultMacroFactory
 

E

ENUM_BITS - class macros.ENUM_BITS.
ENUM_BITS(elem1, elem2, ...)
ENUM_BITS() - Constructor for class macros.ENUM_BITS
 
ENUM_INT - class macros.ENUM_INT.
ENUM_INT(elem1, elem2, ...)
ENUM_INT() - Constructor for class macros.ENUM_INT
 
ENUM_OBJ - class macros.ENUM_OBJ.
ENUM_OBJ(className, elem1, name1, elem2, name2, ...)
ENUM_OBJ() - Constructor for class macros.ENUM_OBJ
 
error(String) - Method in class jatha.Expander
Prints an error message and throws a MacroError.
escapify(String) - Static method in class jatha.MacroUtil
Replaces special characters like newlines, tabs, quotes, and backslashes into escaped character sequences (e.g.
expand(String[], Writer, Expander) - Method in class jatha.Macro
This is the more convenient version of expand.
expand(String[], Writer, Expander) - Method in class macros.ENUM_INT
Expands the macro
expand(String[], Writer, Expander) - Method in class macros.PROP
Expands the macro
expand(String[], Writer, Expander) - Method in class macros.CTOR
Expands the macro
expand(String[], Writer, Expander) - Method in class macros.INCLUDE
Expands the macro
expand(String[], Writer, Expander) - Method in class macros.ENUM_BITS
Expands the macro
expand(String[], Writer, Expander) - Method in class macros.CLASS
Expands the macro
expand(String[], Writer, Expander) - Method in class macros.ENUM_OBJ
Expands the macro
expand(String, Writer, Expander) - Method in class jatha.Macro
Most macros use the other version of expand.
expand(String, Writer, Expander) - Method in class macros.STRINGIFY
Expands the macro
Expander - class jatha.Expander.
This is the class that does the actual macro expansion.
Expander() - Constructor for class jatha.Expander
 
expandMacro(String, String, Writer) - Method in class jatha.Expander
 

F

findMatchingEndParen(String, int) - Static method in class jatha.MacroUtil
Searches through a string to find a matching ')' character.

G

getFile() - Method in class jatha.Expander
Returns the name of the file currently being processed.
getLine() - Method in class jatha.Expander
Returns the current line number in the current file.
getMessage(String) - Method in class jatha.Expander
Allows a macro to retrieve a message left by a previous macro.
getNameOfGetMethod(String, String) - Static method in class macros.PROP
Returns the name of the get method for the given property name and type.
getNameOfMemberVariable(String) - Static method in class macros.PROP
Returns the name of the member variable used to store the value of the given property.
getNameOfParameter(String, String) - Static method in class macros.PROP
Returns an appropriate name for a method parameter, given the name and type of a property.

I

INCLUDE - class macros.INCLUDE.
INCLUDE(filename)
INCLUDE() - Constructor for class macros.INCLUDE
 
isJavaReservedWord(String) - Static method in class jatha.MacroUtil
Returns true if the string is a Java reserved word.

J

jatha - package jatha
 

L

leaveMessage(String, Object) - Method in class jatha.Expander
Allows a macro to leave a message that can be retrieved by later macros.

M

Macro - class jatha.Macro.
This is the base class for all macros.
Macro() - Constructor for class jatha.Macro
 
MacroFactory - interface jatha.MacroFactory.
MacroFactories are used to create Macro objects when a macro call is encountered in a file.
macros - package macros
 
MacroUtil - class jatha.MacroUtil.
Helper functions for macros.
MacroUtil() - Constructor for class jatha.MacroUtil
 
Main - class jatha.Main.
Usage: java jatha.Main [ -all | -quiet ] [-dir <directory>]
Main() - Constructor for class jatha.Main
 
main(String[]) - Static method in class jatha.Main
 

P

pluralize(String) - Static method in class jatha.MacroUtil
Turn a singular noun into a plural noun.
processFile(File, File, boolean, boolean) - Method in class jatha.Expander
 
processFile(LineNumberReader, Writer) - Method in class jatha.Expander
 
PROP - class macros.PROP.
PROP(type, name, [initial-value])
PROP() - Constructor for class macros.PROP
 

R

registerMacroFactory(MacroFactory, boolean) - Method in class jatha.Expander
Registers a new MacroFactory which will be used to lookup Macros.
reverseCharAt(String, int) - Static method in class jatha.MacroUtil
Just like String.charAt(), but it counts from the end of the string.

S

splitString(String, char, boolean, boolean, boolean, boolean) - Static method in class jatha.MacroUtil
Split a String into an array of Strings, using a given separator.
STRINGIFY - class macros.STRINGIFY.
STRINGIFY(expr)
STRINGIFY() - Constructor for class macros.STRINGIFY
 

T

trace(String) - Method in class jatha.Expander
Prints an error message, but doesn't throw a MacroError like error() does.

U

unregisterMacroFactory(MacroFactory) - Method in class jatha.Expander
Unregister a macro factory.
util - Static variable in class jatha.Macro
Contains helper functions for macros.

C D E F G I J L M P R S T U