Cantaloop CGimlet - API Documentation, Version: 0.2.0, Date: 2002-05-13 21:30 CEST
A B C D E F G I J L M N O P Q R S T U W X

A

AbstractCodeWriter - class org.cantaloop.cgimlet.lang.AbstractCodeWriter.
Abstract class that contains useful method for code writers.
AbstractCodeWriter() - Constructor for class org.cantaloop.cgimlet.lang.AbstractCodeWriter
Creates a new AbstractCodeWriter instance.
AbstractCodeWriter(File, boolean) - Constructor for class org.cantaloop.cgimlet.lang.AbstractCodeWriter
Creates a new AbstractCodeWriter instance.
AbstractModifier - class org.cantaloop.cgimlet.lang.AbstractModifier.
Skeleton implementation of Modifier.
AbstractModifier() - Constructor for class org.cantaloop.cgimlet.lang.AbstractModifier
 
AbstractModifier(Access, boolean, boolean) - Constructor for class org.cantaloop.cgimlet.lang.AbstractModifier
 
AbstractTemplate - class org.cantaloop.cgimlet.lang.java.AbstractTemplate.
Abstract base class for all templates.
AbstractTemplate() - Constructor for class org.cantaloop.cgimlet.lang.java.AbstractTemplate
 
AbstractTemplate(String) - Constructor for class org.cantaloop.cgimlet.lang.java.AbstractTemplate
 
AbstractTemplate(String, Modifier) - Constructor for class org.cantaloop.cgimlet.lang.java.AbstractTemplate
 
AbstractUtils - class org.cantaloop.cgimlet.lang.AbstractUtils.
 
AbstractUtils() - Constructor for class org.cantaloop.cgimlet.lang.AbstractUtils
 
addConstructor() - Method in interface org.cantaloop.cgimlet.lang.ClassTemplate
Creates a constructor for this class
addConstructor() - Method in class org.cantaloop.cgimlet.lang.java.JClassTemplate
 
addField(FieldTemplate) - Method in interface org.cantaloop.cgimlet.lang.ClassTemplate
Adds a field.
addField(FieldTemplate) - Method in class org.cantaloop.cgimlet.lang.java.JClassTemplate
 
addImport(String) - Method in interface org.cantaloop.cgimlet.lang.ClassTemplate
Adds a class or a package that should be imported.
addImport(String) - Method in class org.cantaloop.cgimlet.lang.java.JClassTemplate
 
addInterface(String) - Method in interface org.cantaloop.cgimlet.lang.ClassTemplate
Adds the (fully qualified) name of a interface to the list of interfaces this class implements.
addInterface(String) - Method in class org.cantaloop.cgimlet.lang.java.JClassTemplate
 
addMemberClass(String, Modifier) - Method in class org.cantaloop.cgimlet.lang.java.JClassTemplate
 
addMethod(MethodTemplate) - Method in interface org.cantaloop.cgimlet.lang.ClassTemplate
Adds a method.
addMethod(MethodTemplate) - Method in class org.cantaloop.cgimlet.lang.java.JClassTemplate
 
addParameter(Type, String) - Method in interface org.cantaloop.cgimlet.lang.ConstructorTemplate
Adds a parameter to the parameter list.
addParameter(Type, String) - Method in class org.cantaloop.cgimlet.lang.java.JConstructorTemplate
 
addToClasspath(File) - Method in class org.cantaloop.cgimlet.lang.java.JCompiler
Addes the given file to the classpath. used for this compilation process.
append(String) - Method in interface org.cantaloop.cgimlet.lang.ConstructorTemplate
Append some code to the body.
append(String) - Method in class org.cantaloop.cgimlet.lang.java.JConstructorTemplate
 
append(String, String) - Method in interface org.cantaloop.cgimlet.lang.ConstructorTemplate
Convinience method equivalent to append(s, new String[] { a1 });.
append(String, String) - Method in class org.cantaloop.cgimlet.lang.java.JConstructorTemplate
 
append(String, String[]) - Method in interface org.cantaloop.cgimlet.lang.ConstructorTemplate
Invokes CGUtils.sprintf(String,String[]) with the given arguments and appends the result to the body.
append(String, String[]) - Method in class org.cantaloop.cgimlet.lang.java.JConstructorTemplate
 
append(String, String, String) - Method in interface org.cantaloop.cgimlet.lang.ConstructorTemplate
Convinience method equivalent to append(s, new String[] { a1, a2 });.
append(String, String, String) - Method in class org.cantaloop.cgimlet.lang.java.JConstructorTemplate
 
append(String, String, String, String) - Method in interface org.cantaloop.cgimlet.lang.ConstructorTemplate
Convinience method equivalent to append(s, new String[] { a1, a2, a3 });.
append(String, String, String, String) - Method in class org.cantaloop.cgimlet.lang.java.JConstructorTemplate
 
apply(Element) - Method in class org.cantaloop.cgimlet.PropertyParser
Shorthand for:
initProperties(root);
replaceProperties(root);
getProperties();
assertContains(Map, Object, String) - Static method in class org.cantaloop.cgimlet.Assertions
Checks if map contains the given key.
Assertions - class org.cantaloop.cgimlet.Assertions.
This class defines some useful methods to ensure that a certain conditions holds true.
Assertions() - Constructor for class org.cantaloop.cgimlet.Assertions
 
assertNotNull(Object, String) - Static method in class org.cantaloop.cgimlet.Assertions
Throws a CodeGenerationException with the given error message if obj == null.
assertTrue(boolean, String) - Static method in class org.cantaloop.cgimlet.Assertions
Throws a CodeGenerationException with the given error message if the boolean parameter condition is false.

B

barOpt - Variable in class org.cantaloop.cgimlet.testing.TestHandler
 
BeanHandler - class org.cantaloop.cgimlet.handler.BeanHandler.
Handler that generates a java bean.
BeanHandler() - Constructor for class org.cantaloop.cgimlet.handler.BeanHandler
 

C

callReturn(String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Generates a return statement that returns expr.
callReturn(String) - Method in class org.cantaloop.cgimlet.lang.java.JUtils
 
callSet(String, String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Generate a statement for calling a set method.
callSet(String, String, String) - Method in class org.cantaloop.cgimlet.lang.java.JUtils
 
caseConcat(String, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
caseConcat(String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Concats s1 and s2 and makes sure that the first letter of s2 is an upper case letter.
caseConcat(String, String, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
caseConcat(String, String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Concats s1, s2 and s3 and makes sure that the first letter of s2 and s3 is an upper case letter.
caseConcat(String, String, String, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
caseConcat(String, String, String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Concats s1, s2, s3 and s4 and makes sure that the first letter of s2, s3 and s4 is an upper case letter.
CGUtils - interface org.cantaloop.cgimlet.lang.CGUtils.
Interface that defines helper methods for generating common expression and statements in a programming language independent way.
ClassTemplate - interface org.cantaloop.cgimlet.lang.ClassTemplate.
This interface defines the requirements from which a class (or a similar top-level construct) can be generated.
clearClasspath() - Method in class org.cantaloop.cgimlet.lang.java.JCompiler
Removes all entries of the classpath.
CodeCompiler - interface org.cantaloop.cgimlet.lang.CodeCompiler.
Defines the interface of a compiler or interpreter.
CodeGenerationException - exception org.cantaloop.cgimlet.CodeGenerationException.
This exception is thrown when an unrecoverable exception occurs during the codegeneration.
CodeGenerationException() - Constructor for class org.cantaloop.cgimlet.CodeGenerationException
 
CodeGenerationException(String) - Constructor for class org.cantaloop.cgimlet.CodeGenerationException
Creates a new CodeGenerationException instance.
CodeGenerationException(String, Throwable) - Constructor for class org.cantaloop.cgimlet.CodeGenerationException
Creates a new CodeGenerationException instance.
CodeWriter - interface org.cantaloop.cgimlet.lang.CodeWriter.
Classes that want to print or write the generated code must implement this interface.
compile(File) - Method in interface org.cantaloop.cgimlet.lang.CodeCompiler
Compiles the given file.
compile(File) - Method in class org.cantaloop.cgimlet.lang.java.JCompiler
 
compile(List) - Method in interface org.cantaloop.cgimlet.lang.CodeCompiler
Compiles the given list of files.
compile(List) - Method in class org.cantaloop.cgimlet.lang.java.JCompiler
 
CompileException - exception org.cantaloop.cgimlet.lang.CompileException.
This exception is thrown if a CodeCompiler aborts the compilation due to an error or exits with an error code.
CompileException() - Constructor for class org.cantaloop.cgimlet.lang.CompileException
 
CompileException(String) - Constructor for class org.cantaloop.cgimlet.lang.CompileException
Creates a new CompileException instance with the given error message.
ComponentHandler - interface org.cantaloop.cgimlet.ComponentHandler.
Every class that wants the acts as a handler defined in the <handlerdef/> element of the project file must implement this interface.
configure(Element) - Method in interface org.cantaloop.cgimlet.ComponentHandler
Request the handler to configure itself with the given configuration element.
configure(Element) - Method in class org.cantaloop.cgimlet.handler.BeanHandler
 
configure(Element) - Method in class org.cantaloop.cgimlet.testing.TestHandler
 
Constants - interface org.cantaloop.cgimlet.Constants.
Useful constants.
ConstructorTemplate - interface org.cantaloop.cgimlet.lang.ConstructorTemplate.
Template for a constructor of a class.
containsKey(Object) - Method in class org.cantaloop.cgimlet.Options
Overwritten to ask the default instance of the key is not found in this instance.
containsValue(Object) - Method in class org.cantaloop.cgimlet.Options
Overwritten to ask the default instance of the key is not found in this instance.
createHelperMethod() - Method in interface org.cantaloop.cgimlet.lang.ConstructorTemplate
Creates a new helper method.
createHelperMethod() - Method in class org.cantaloop.cgimlet.lang.java.JConstructorTemplate
 
currentID() - Method in class org.cantaloop.cgimlet.IDManager
Returns the current id.

D

DESCR - Static variable in class org.cantaloop.cgimlet.lang.java.AbstractTemplate
 

E

execute() - Method in class org.cantaloop.cgimlet.ProjectGeneratorTask
execute should be called only by ant.

F

FieldTemplate - interface org.cantaloop.cgimlet.lang.FieldTemplate.
A template for a field of a class.
fooOpt - Variable in class org.cantaloop.cgimlet.testing.TestHandler
 

G

generate(Element) - Method in interface org.cantaloop.cgimlet.ComponentHandler
Request the handler to generate the code.
generate(Element) - Method in class org.cantaloop.cgimlet.handler.BeanHandler
 
generate(Element) - Method in class org.cantaloop.cgimlet.testing.TestHandler
 
get(Object) - Method in class org.cantaloop.cgimlet.Options
Overwritten to ask the default instance if the key is not found in this instance.
getAccess() - Method in class org.cantaloop.cgimlet.lang.AbstractModifier
 
getAccess() - Method in interface org.cantaloop.cgimlet.lang.Modifier
 
getBaseDir() - Method in class org.cantaloop.cgimlet.ProjectGenerator
Get the base directory of the project.
getBaseDir() - Method in class org.cantaloop.cgimlet.lang.AbstractCodeWriter
 
getBaseDir() - Method in interface org.cantaloop.cgimlet.lang.CodeWriter
Get the base directory of the generated files.
getBody() - Method in interface org.cantaloop.cgimlet.lang.ConstructorTemplate
 
getBody() - Method in class org.cantaloop.cgimlet.lang.java.JConstructorTemplate
 
getBoolType() - Method in interface org.cantaloop.cgimlet.lang.LanguageFactory
Returns the type that represents a boolean in the concrete programming language.
getBoolType() - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory
 
getClasspath() - Method in class org.cantaloop.cgimlet.lang.java.JCompiler
Returns a (read-only) list with all entries of the classpath.
getClassTemplate(String, String) - Method in interface org.cantaloop.cgimlet.lang.LanguageFactory
Returns a template for a class in the package pkg with name name.
getClassTemplate(String, String) - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory
 
getCode() - Method in interface org.cantaloop.cgimlet.lang.FieldTemplate
Returns the code for the field.
getCode() - Method in interface org.cantaloop.cgimlet.lang.Template
Returns the code for this template.
getCode() - Method in interface org.cantaloop.cgimlet.lang.Modifier
Returns the code representing this modifier.
getCode() - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
 
getCode() - Method in class org.cantaloop.cgimlet.lang.java.JClassTemplate
 
getCode() - Method in class org.cantaloop.cgimlet.lang.java.JConstructorTemplate
 
getCode() - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
getCode() - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory.JModifier
 
getCode() - Method in class org.cantaloop.cgimlet.lang.java.JFieldTemplate
 
getCodeWriter() - Method in interface org.cantaloop.cgimlet.lang.LanguageFactory
 
getCodeWriter() - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory
 
getCodeWriter(String, LanguageFactory) - Method in class org.cantaloop.cgimlet.ProjectGenerator
Returns a codewriter for the programming language lang that is configured with dirname as basedir.
getCompiler() - Method in interface org.cantaloop.cgimlet.lang.LanguageFactory
 
getCompiler() - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory
 
getConstantFieldTemplate(Type, String) - Method in interface org.cantaloop.cgimlet.lang.LanguageFactory
Returns a template for a field that represents a constant.
getConstantFieldTemplate(Type, String) - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory
 
getCopyright() - Static method in class org.cantaloop.cgimlet.ProjectRunner
Returns the copyright string.
getDefaults() - Method in class org.cantaloop.cgimlet.Options
Get the default values.
getDoubleType() - Method in interface org.cantaloop.cgimlet.lang.LanguageFactory
Returns the type that represents a floating-point number in the concrete programming language.
getDoubleType() - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory
 
getElementName() - Method in class org.cantaloop.cgimlet.OptionReaderConfigurator
Get the QName of the elements that contains the options.
getFieldTemplate(Type, String) - Method in interface org.cantaloop.cgimlet.lang.LanguageFactory
 
getFieldTemplate(Type, String) - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory
 
getFinal() - Method in class org.cantaloop.cgimlet.lang.AbstractModifier
 
getFinal() - Method in interface org.cantaloop.cgimlet.lang.Modifier
 
getFullyQualifiedName() - Method in interface org.cantaloop.cgimlet.lang.ClassTemplate
Get the fully qualified name of the class
getFullyQualifiedName() - Method in class org.cantaloop.cgimlet.lang.java.JClassTemplate
 
getHandler(String) - Method in class org.cantaloop.cgimlet.ProjectGenerator
Get the handler with key key.
getHandlerKey(Class) - Method in class org.cantaloop.cgimlet.ProjectGenerator
Get the key that was used to register a handler of type handlerType.
getHelperMethodName() - Method in class org.cantaloop.cgimlet.lang.java.JConstructorTemplate
 
getHelperMethodName() - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
getInitValue() - Method in interface org.cantaloop.cgimlet.lang.FieldTemplate
Sets the code the field should be initialized with.
getInitValue() - Method in class org.cantaloop.cgimlet.lang.java.JFieldTemplate
 
getInstance() - Static method in class org.cantaloop.cgimlet.lang.java.JUtils
 
getInstance() - Static method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory
 
getIntType() - Method in interface org.cantaloop.cgimlet.lang.LanguageFactory
Returns the type that represents a integer in the concrete programming language.
getIntType() - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory
 
getKeyAttributeName() - Method in class org.cantaloop.cgimlet.OptionReaderConfigurator
Get the name of the attribute that holds the key of the option
getListType() - Method in interface org.cantaloop.cgimlet.lang.LanguageFactory
Returns the type that represent a list in the concrete programming language.
getListType() - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory
 
getLogger() - Method in interface org.cantaloop.cgimlet.lang.CodeCompiler
Returns the logger.
getLogger() - Method in class org.cantaloop.cgimlet.lang.java.JCompiler
 
getLogger(Object) - Method in class org.cantaloop.cgimlet.ProjectGenerator
Get a logger for the given object that is preconfigured with the topic of the ProjectGenerator.
getLoggerTopic() - Method in class org.cantaloop.cgimlet.ProjectGenerator
Return the topic the ProjectGenerator is logging on.
getMapType() - Method in interface org.cantaloop.cgimlet.lang.LanguageFactory
Returns the type that represents a map (sometimes also called dictionary or associative array) in the concrete programming language.
getMapType() - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory
 
getMethodTemplate(String) - Method in interface org.cantaloop.cgimlet.lang.LanguageFactory
 
getMethodTemplate(String) - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory
 
getModifier() - Method in interface org.cantaloop.cgimlet.lang.FieldTemplate
 
getModifier() - Method in interface org.cantaloop.cgimlet.lang.LanguageFactory
 
getModifier() - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
Returns the modifier of this method.
getModifier() - Method in class org.cantaloop.cgimlet.lang.java.AbstractTemplate
 
getModifier() - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory
 
getModifier(Modifier.Access, boolean, boolean) - Method in interface org.cantaloop.cgimlet.lang.LanguageFactory
 
getModifier(Modifier.Access, boolean, boolean) - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory
 
getName() - Method in interface org.cantaloop.cgimlet.lang.FieldTemplate
 
getName() - Method in interface org.cantaloop.cgimlet.lang.ClassTemplate
Returns the simple name of the class
getName() - Method in class org.cantaloop.cgimlet.lang.Type
 
getName() - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
 
getName() - Method in class org.cantaloop.cgimlet.lang.java.AbstractTemplate
 
getNestedException() - Method in class org.cantaloop.cgimlet.CodeGenerationException
Returns the exception that has caused the CodeGenerationException.
getOption(String) - Method in class org.cantaloop.cgimlet.Options
Get the option with key key.
getOption(String) - Method in class org.cantaloop.cgimlet.OptionReader
Get the value of the option key.
getOption(String, String) - Method in class org.cantaloop.cgimlet.Options
Get the option with key key.
getOptions() - Method in class org.cantaloop.cgimlet.OptionReader
Get the options instance the values are written to.
getPackage() - Method in interface org.cantaloop.cgimlet.lang.ClassTemplate
Get the package the class is contained in.
getPackage() - Method in class org.cantaloop.cgimlet.lang.java.JClassTemplate
 
getPrettyPrintConfiguration() - Method in class org.cantaloop.cgimlet.lang.AbstractCodeWriter
 
getPrettyPrintConfiguration() - Method in interface org.cantaloop.cgimlet.lang.CodeWriter
Get the configuration file for the pretty printer.
getProjectDocument() - Method in class org.cantaloop.cgimlet.ProjectGenerator
Get the document for the project file.
getProjectGenerator() - Static method in class org.cantaloop.cgimlet.ProjectRunner
Get the project generator of the last run.
getProperties() - Method in class org.cantaloop.cgimlet.PropertyParser
Returns the properties the parser has read.
getProperties() - Method in class org.cantaloop.cgimlet.ProjectGenerator
Get the properties of this project
getQName(String, Element) - Static method in class org.cantaloop.cgimlet.XMLUtils
Get the QName of a raw name.
getResultMap() - Method in class org.cantaloop.cgimlet.ProjectGenerator
Returns the results the handlers.
getReturnType() - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
 
getReturnType() - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
getRootElement() - Method in class org.cantaloop.cgimlet.OptionReader
Get the root element of this OptionReader.
getSetType() - Method in interface org.cantaloop.cgimlet.lang.LanguageFactory
Returns the type that represent a set in the concrete programming language.
getSetType() - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory
 
getStdErr() - Method in class org.cantaloop.cgimlet.lang.CompileException
Returns the message that was written to standard error by the compiler.
getStdOut() - Method in class org.cantaloop.cgimlet.lang.CompileException
Returns the message that was written to standard error by the compiler.
getStringType() - Method in interface org.cantaloop.cgimlet.lang.LanguageFactory
Returns the type that represents a string in the concrete programming language.
getStringType() - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory
 
getTargetDir() - Method in interface org.cantaloop.cgimlet.lang.CodeCompiler
Returns the target directory of this compiler.
getTargetDir() - Method in class org.cantaloop.cgimlet.lang.java.JCompiler
 
getter(FieldTemplate) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
getter(FieldTemplate) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Factory method that returns a template for a get-method.
getter(String, FieldTemplate) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Factory method that returns a template for a get-method.
getter(String, FieldTemplate) - Method in class org.cantaloop.cgimlet.lang.java.JUtils
 
getType() - Method in interface org.cantaloop.cgimlet.lang.FieldTemplate
 
getType() - Method in class org.cantaloop.cgimlet.lang.java.JFieldTemplate
 
getType(String) - Method in interface org.cantaloop.cgimlet.lang.LanguageFactory
Returns a type for the given name.
getType(String) - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory
 
getUsage() - Static method in class org.cantaloop.cgimlet.Main
Returns a string that contains information about how to use the codegeneration from the commandline.
getUtils() - Method in interface org.cantaloop.cgimlet.lang.LanguageFactory
 
getUtils() - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory
 
getValueAttributeName() - Method in class org.cantaloop.cgimlet.OptionReaderConfigurator
Get the name of the attribute that holds the value of the option
getVersion() - Static method in class org.cantaloop.cgimlet.ProjectRunner
Returns the version string.
getVoidType() - Method in interface org.cantaloop.cgimlet.lang.LanguageFactory
Returns the type that represent no type in the concrete programming language.
getVoidType() - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory
 

I

IDManager - class org.cantaloop.cgimlet.IDManager.
The IDManager helps you to avaid naming-conflicts in your generated code.
IDManager() - Constructor for class org.cantaloop.cgimlet.IDManager
 
init(ProjectGenerator) - Method in interface org.cantaloop.cgimlet.ComponentHandler
Initialize the handler.
init(ProjectGenerator) - Method in class org.cantaloop.cgimlet.handler.BeanHandler
 
init(ProjectGenerator) - Method in class org.cantaloop.cgimlet.testing.TestHandler
 
initHandlers(Element) - Method in class org.cantaloop.cgimlet.ProjectGenerator
 
initProperties(Element) - Method in class org.cantaloop.cgimlet.PropertyParser
Read the properties from the elements that are direct children of root.
InternalCodeGenerationException - exception org.cantaloop.cgimlet.InternalCodeGenerationException.
This exception is thrown when a bug is detected at runtime.
InternalCodeGenerationException() - Constructor for class org.cantaloop.cgimlet.InternalCodeGenerationException
 
InternalCodeGenerationException(String) - Constructor for class org.cantaloop.cgimlet.InternalCodeGenerationException
 
internGetClassDeclaration(StringBuffer) - Method in class org.cantaloop.cgimlet.lang.java.JClassTemplate
Returns the declaration of the class.
invoke() - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
Returns a statement that invokes this method.
invoke() - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
invoke(String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
invoke(String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Returns a statement that invokes the method named methodName.
invoke(String) - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
Returns a statement that invokes this method with the given parameter.
invoke(String) - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
invoke(String[]) - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
Returns a statement that invokes this method with the given parameters.
invoke(String[]) - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
invoke(String, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
invoke(String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Returns a statement that invokes the method named methodName with the given parameter.
invoke(String, String) - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
Returns a statement that invokes this method with param1, param2 as parameter.
invoke(String, String) - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
invoke(String, String[]) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Returns a statement that invokes the method named methodName with the given parameters.
invoke(String, String[]) - Method in class org.cantaloop.cgimlet.lang.java.JUtils
 
invoke(String, String, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
invoke(String, String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Returns a statement that invokes the method named methodName with param1, param2 as parameter.
invokeExpr() - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
Returns a expression that invokes this method.
invokeExpr() - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
invokeExpr(String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
invokeExpr(String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Returns a expression that invokes the method named methodName.
invokeExpr(String) - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
Returns a expression that invokes this method with param1 as parameter.
invokeExpr(String) - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
invokeExpr(String[]) - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
Returns a expression that invokes this method with the given parameters.
invokeExpr(String[]) - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
invokeExpr(String, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
invokeExpr(String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Returns a expression that invokes the method named methodName with param1 as parameter.
invokeExpr(String, String) - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
Returns a expression that invokes this method with param1, param2 as parameter.
invokeExpr(String, String) - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
invokeExpr(String, String[]) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Returns a expression that invokes the method named methodName with the given parameters.
invokeExpr(String, String[]) - Method in class org.cantaloop.cgimlet.lang.java.JUtils
 
invokeExpr(String, String, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
invokeExpr(String, String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Returns a expression that invokes the method named methodName with param1, param2 as parameter.
invokeOn(String) - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
Returns a statement that invokes this method.
invokeOn(String) - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
invokeOn(String, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
invokeOn(String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Returns a statement that invokes the method named methodName.
invokeOn(String, String) - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
Returns a statement that invokes this method with the given parameter.
invokeOn(String, String) - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
invokeOn(String, String[]) - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
Returns a statement that invokes this method with the given parameters.
invokeOn(String, String[]) - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
invokeOn(String, String, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
invokeOn(String, String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Returns a statement that invokes the method named methodName with the given parameter.
invokeOn(String, String, String) - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
Returns a statement that invokes this method with param1, param2 as parameter.
invokeOn(String, String, String) - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
invokeOn(String, String, String[]) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Returns a statement that invokes the method named methodName with the given parameters.
invokeOn(String, String, String[]) - Method in class org.cantaloop.cgimlet.lang.java.JUtils
 
invokeOn(String, String, String, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
invokeOn(String, String, String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Returns a statement that invokes the method named methodName with param1, param2 as parameter.
invokeOnExpr(String) - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
Returns a expression that invokes this method.
invokeOnExpr(String) - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
invokeOnExpr(String, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
invokeOnExpr(String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Returns a expression that invokes the method named methodName.
invokeOnExpr(String, String) - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
Returns a expression that invokes this method with param1 as parameter.
invokeOnExpr(String, String) - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
invokeOnExpr(String, String[]) - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
Returns a expression that invokes this method with the given parameters.
invokeOnExpr(String, String[]) - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
invokeOnExpr(String, String, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
invokeOnExpr(String, String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Returns a expression that invokes the method named methodName with param1 as parameter.
invokeOnExpr(String, String, String) - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
Returns a expression that invokes this method with param1, param2 as parameter.
invokeOnExpr(String, String, String) - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
invokeOnExpr(String, String, String[]) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Returns a expression that invokes the method named methodName with the given parameters.
invokeOnExpr(String, String, String[]) - Method in class org.cantaloop.cgimlet.lang.java.JUtils
 
invokeOnExpr(String, String, String, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
invokeOnExpr(String, String, String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Returns a expression that invokes the method named methodName with param1, param2 as parameter.
isPrettyPrinting() - Method in class org.cantaloop.cgimlet.lang.AbstractCodeWriter
 
isPrettyPrinting() - Method in interface org.cantaloop.cgimlet.lang.CodeWriter
Check if pretty printing is enabled or not.
isStatic() - Method in class org.cantaloop.cgimlet.lang.AbstractModifier
 
isStatic() - Method in interface org.cantaloop.cgimlet.lang.Modifier
 

J

JavaClassWriter - class org.cantaloop.cgimlet.lang.java.JavaClassWriter.
A CodeWriter for the java programming language.
JavaClassWriter() - Constructor for class org.cantaloop.cgimlet.lang.java.JavaClassWriter
 
JavaClassWriter(File, boolean) - Constructor for class org.cantaloop.cgimlet.lang.java.JavaClassWriter
 
JClassTemplate - class org.cantaloop.cgimlet.lang.java.JClassTemplate.
This template that can be used to generate a class.
JClassTemplate(String, String) - Constructor for class org.cantaloop.cgimlet.lang.java.JClassTemplate
 
JCompiler - class org.cantaloop.cgimlet.lang.java.JCompiler.
 
JCompiler() - Constructor for class org.cantaloop.cgimlet.lang.java.JCompiler
 
JCompilerUTest - class org.cantaloop.cgimlet.testing.JCompilerUTest.
 
JCompilerUTest(String) - Constructor for class org.cantaloop.cgimlet.testing.JCompilerUTest
 
JConstructorTemplate - class org.cantaloop.cgimlet.lang.java.JConstructorTemplate.
 
JConstructorTemplate(String) - Constructor for class org.cantaloop.cgimlet.lang.java.JConstructorTemplate
 
JFieldTemplate - class org.cantaloop.cgimlet.lang.java.JFieldTemplate.
 
JFieldTemplate(Modifier, Type, String, String) - Constructor for class org.cantaloop.cgimlet.lang.java.JFieldTemplate
 
JFieldTemplate(Type, String) - Constructor for class org.cantaloop.cgimlet.lang.java.JFieldTemplate
Creates a new JFieldTemplate instance.
JFieldTemplate(Type, String, String) - Constructor for class org.cantaloop.cgimlet.lang.java.JFieldTemplate
Creates a new JFieldTemplate instance.
JLanguageFactory - class org.cantaloop.cgimlet.lang.java.JLanguageFactory.
Implementation of LanguageFactory for the java programming language.
JLanguageFactory.JModifier - class org.cantaloop.cgimlet.lang.java.JLanguageFactory.JModifier.
 
JLanguageFactory.JModifier() - Constructor for class org.cantaloop.cgimlet.lang.java.JLanguageFactory.JModifier
 
JLanguageFactory.JModifier(Modifier.Access, boolean, boolean) - Constructor for class org.cantaloop.cgimlet.lang.java.JLanguageFactory.JModifier
 
JMethodTemplate - class org.cantaloop.cgimlet.lang.java.JMethodTemplate.
 
JMethodTemplate(String) - Constructor for class org.cantaloop.cgimlet.lang.java.JMethodTemplate
Creates a new JMethodTemplate instance.
JMethodTemplate(String, Type, String) - Constructor for class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
JMethodTemplate(String, Type, String, Type, String) - Constructor for class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
JUtils - class org.cantaloop.cgimlet.lang.java.JUtils.
 

L

LanguageFactory - interface org.cantaloop.cgimlet.lang.LanguageFactory.
Factory class that creates the implementations of the interfaces in this package for a concrete programming language.
LOG_DEFAULT - Static variable in class org.cantaloop.cgimlet.ProjectGenerator
Constant used with ProjectGenerator.setLogLevel(int).
LOG_QUIET - Static variable in class org.cantaloop.cgimlet.ProjectGenerator
Constant used with ProjectGenerator.setLogLevel(int).
LOG_VERBOSE - Static variable in class org.cantaloop.cgimlet.ProjectGenerator
Constant used with ProjectGenerator.setLogLevel(int).
LOGGER_TOPIC_PREFIX - Static variable in interface org.cantaloop.cgimlet.Constants
The prefix for all logging activity.

M

m_access - Variable in class org.cantaloop.cgimlet.lang.AbstractModifier
 
m_baseDir - Variable in class org.cantaloop.cgimlet.lang.AbstractCodeWriter
 
m_body - Variable in class org.cantaloop.cgimlet.lang.java.JConstructorTemplate
 
m_config - Variable in class org.cantaloop.cgimlet.OptionReader
 
m_constructors - Variable in class org.cantaloop.cgimlet.lang.java.JClassTemplate
 
m_debug - Variable in class org.cantaloop.cgimlet.ProjectRunner
 
m_defaults - Variable in class org.cantaloop.cgimlet.Options
 
m_elemName - Variable in class org.cantaloop.cgimlet.PropertyParser
 
m_fields - Variable in class org.cantaloop.cgimlet.lang.java.JClassTemplate
 
m_final - Variable in class org.cantaloop.cgimlet.lang.AbstractModifier
 
m_helperMethods - Variable in class org.cantaloop.cgimlet.lang.java.JConstructorTemplate
 
m_ifaces - Variable in class org.cantaloop.cgimlet.lang.java.JClassTemplate
 
m_imports - Variable in class org.cantaloop.cgimlet.lang.java.JClassTemplate
 
m_initValue - Variable in class org.cantaloop.cgimlet.lang.java.JFieldTemplate
 
m_isFinal - Variable in class org.cantaloop.cgimlet.lang.java.JFieldTemplate
 
m_isStatic - Variable in class org.cantaloop.cgimlet.lang.java.JFieldTemplate
 
m_keyAttr - Variable in class org.cantaloop.cgimlet.PropertyParser
 
m_memberClasses - Variable in class org.cantaloop.cgimlet.lang.java.JClassTemplate
 
m_methods - Variable in class org.cantaloop.cgimlet.lang.java.JClassTemplate
 
m_modifier - Variable in class org.cantaloop.cgimlet.lang.java.AbstractTemplate
 
m_name - Variable in class org.cantaloop.cgimlet.lang.java.AbstractTemplate
 
m_opt - Variable in class org.cantaloop.cgimlet.OptionReader
 
m_params - Variable in class org.cantaloop.cgimlet.lang.java.JConstructorTemplate
 
m_parent - Variable in class org.cantaloop.cgimlet.lang.java.JClassTemplate
 
m_pkg - Variable in class org.cantaloop.cgimlet.lang.java.JClassTemplate
 
m_prettyPrintConfig - Variable in class org.cantaloop.cgimlet.lang.AbstractCodeWriter
 
m_prettyPrinting - Variable in class org.cantaloop.cgimlet.ProjectRunner
 
m_prettyPrinting - Variable in class org.cantaloop.cgimlet.lang.AbstractCodeWriter
 
m_prjFile - Variable in class org.cantaloop.cgimlet.ProjectRunner
 
m_props - Variable in class org.cantaloop.cgimlet.PropertyParser
 
m_quiet - Variable in class org.cantaloop.cgimlet.ProjectRunner
 
m_returnType - Variable in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
m_root - Variable in class org.cantaloop.cgimlet.OptionReader
 
m_setter - Variable in class org.cantaloop.cgimlet.OptionReader
 
m_static - Variable in class org.cantaloop.cgimlet.lang.AbstractModifier
 
m_type - Variable in class org.cantaloop.cgimlet.lang.java.JFieldTemplate
 
m_valueAttr - Variable in class org.cantaloop.cgimlet.PropertyParser
 
m_verbose - Variable in class org.cantaloop.cgimlet.ProjectRunner
 
Main - class org.cantaloop.cgimlet.Main.
Entry point of the code generation when starting it from the command line. This class can also be used to invoke the codegeneration from within another program.
Main() - Constructor for class org.cantaloop.cgimlet.Main
 
main(String[]) - Static method in class org.cantaloop.cgimlet.Main
This method is called when starting the codegeneration from the commandline by the VM, passing the commandline arguments as parameter.
makeClassName(String, String, char) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
makeClassName(String, String, char) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Create a classname based on a template.
mapPut(String, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
mapPut(String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Shorthand for: mapPut("map", key, value).
mapPut(String, String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Returns a statement that invokes the put method on the map named mapName with the given key and value.
mapPut(String, String, String) - Method in class org.cantaloop.cgimlet.lang.java.JUtils
 
mapStrPut(String, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
mapStrPut(String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Shorthand for: mapStrPut("map", key, value).
mapStrPut(String, String, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
mapStrPut(String, String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Same as mapPut except that key will be quoted.
MethodTemplate - interface org.cantaloop.cgimlet.lang.MethodTemplate.
A template for a method.
Modifier - interface org.cantaloop.cgimlet.lang.Modifier.
Abstract representation of a modifier of a class, a field or a method.
Modifier.Access - class org.cantaloop.cgimlet.lang.Modifier.Access.
This inner class is used to define constants for the access level of the modifier (a so-called typesafe enumeration).

N

NAMESPACE - Static variable in class org.cantaloop.cgimlet.handler.BeanHandler
 
NAMESPACE_URI - Static variable in class org.cantaloop.cgimlet.handler.BeanHandler
 
namespacedElements(Element, Namespace) - Static method in class org.cantaloop.cgimlet.XMLUtils
Get a list with the direct children of parent that are in namespace ns.
newInstance(Type, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
newInstance(Type, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Shorthand for newInstance(type, name, type);.
newInstance(Type, String, Type) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Creates a statement that icreates a instance of implType and stores that instance in the variable name.
newInstance(Type, String, Type) - Method in class org.cantaloop.cgimlet.lang.java.JUtils
 
nextID() - Method in class org.cantaloop.cgimlet.IDManager
Sets the id to its next value and returns it.
nonfinalToFinalIdentifier(String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
Convert a (valid) identifier to a final identifier.
nonfinalToFinalIdentifier(String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Convert a (valid) identifier to a final identifier.

O

OptionReader - class org.cantaloop.cgimlet.OptionReader.
Handlers can use a OptionReader to read configuration options.
OptionReader(OptionReaderConfigurator, Element) - Constructor for class org.cantaloop.cgimlet.OptionReader
Creates a new OptionReader instance.
OptionReader(OptionReaderConfigurator, Element, Options) - Constructor for class org.cantaloop.cgimlet.OptionReader
Creates a new OptionReader instance.
OptionReader(OptionReaderConfigurator, Options) - Constructor for class org.cantaloop.cgimlet.OptionReader
Creates a new OptionReader instance.
OptionReaderConfigurator - class org.cantaloop.cgimlet.OptionReaderConfigurator.
You can use this class to adapt a OptionReader to your needs.
OptionReaderConfigurator(Namespace) - Constructor for class org.cantaloop.cgimlet.OptionReaderConfigurator
Shorthand for OptionReaderConfigurator(new QName("option", ns)).
OptionReaderConfigurator(QName) - Constructor for class org.cantaloop.cgimlet.OptionReaderConfigurator
Shorthand for OptionReaderConfigurator(elemName, "name", "value").
OptionReaderConfigurator(QName, String, String) - Constructor for class org.cantaloop.cgimlet.OptionReaderConfigurator
Creates a new OptionReaderConfigurator instance.
Options - class org.cantaloop.cgimlet.Options.
Allows a handler the store options.
Options() - Constructor for class org.cantaloop.cgimlet.Options
Creates a new Options instance without default values.
Options(Options) - Constructor for class org.cantaloop.cgimlet.Options
Creates a new Options instance with the default values found in def
OptionSetter - interface org.cantaloop.cgimlet.OptionSetter.
A OptionSetter instance can be attached to a OptionReader to control to way how options are processed.
org.cantaloop.cgimlet - package org.cantaloop.cgimlet
 
org.cantaloop.cgimlet.handler - package org.cantaloop.cgimlet.handler
 
org.cantaloop.cgimlet.lang - package org.cantaloop.cgimlet.lang
 
org.cantaloop.cgimlet.lang.java - package org.cantaloop.cgimlet.lang.java
 
org.cantaloop.cgimlet.testing - package org.cantaloop.cgimlet.testing
 

P

parameterToString() - Method in interface org.cantaloop.cgimlet.lang.ConstructorTemplate
Returns a textual representation of the parameters.
parameterToString() - Method in class org.cantaloop.cgimlet.lang.java.JConstructorTemplate
 
parse(Element) - Method in class org.cantaloop.cgimlet.PropertyParser
Deprecated. use PropertyParser.apply(org.dom4j.Element) instead.
parse(File) - Static method in class org.cantaloop.cgimlet.XMLUtils
Parse the file f and return the xml document.
parse(InputStream) - Static method in class org.cantaloop.cgimlet.XMLUtils
Parse the input stream and return the xml document.
parsePropertyString(String) - Method in class org.cantaloop.cgimlet.PropertyParser
Parse value and resolve all properties in the given string.
Throws a CodeGenerationException if a property cannot be resolved.
PrintfUTest - class org.cantaloop.cgimlet.testing.PrintfUTest.
PrintfUTest.java
PrintfUTest(String) - Constructor for class org.cantaloop.cgimlet.testing.PrintfUTest
 
PRIVATE - Static variable in class org.cantaloop.cgimlet.lang.Modifier.Access
 
PROJECT_NS - Static variable in interface org.cantaloop.cgimlet.Constants
The namespace for the projectfile.
PROJECT_NS_URI - Static variable in interface org.cantaloop.cgimlet.Constants
The URI of the namespace for the projectfile.
ProjectGenerator - class org.cantaloop.cgimlet.ProjectGenerator.
A ProjectGenerator is attached to every projectfile.
ProjectGenerator(File) - Constructor for class org.cantaloop.cgimlet.ProjectGenerator
 
ProjectGeneratorTask - class org.cantaloop.cgimlet.ProjectGeneratorTask.
Ant task for cgimlet.
ProjectGeneratorTask() - Constructor for class org.cantaloop.cgimlet.ProjectGeneratorTask
 
ProjectGeneratorUTest - class org.cantaloop.cgimlet.ProjectGeneratorUTest.
This class is for testing purpose only.
ProjectGeneratorUTest(String) - Constructor for class org.cantaloop.cgimlet.ProjectGeneratorUTest
 
ProjectRunner - class org.cantaloop.cgimlet.ProjectRunner.
This class should be used to run a codegeneration process.
ProjectRunner() - Constructor for class org.cantaloop.cgimlet.ProjectRunner
 
PROPERTY - Static variable in interface org.cantaloop.cgimlet.Constants
The name of the element in the projectfile that defines properties.
PropertyParser - class org.cantaloop.cgimlet.PropertyParser.
A PropertyParser reads property-definitions and replaces their occurences in a XML file. A property is defined like this: <property name="basedir" value="."/> This sets the property `basedir' to the value `.'.
PropertyParser(Namespace) - Constructor for class org.cantaloop.cgimlet.PropertyParser
Shorthand for:
PropertyParser(new QName("property", ns)).
PropertyParser(QName) - Constructor for class org.cantaloop.cgimlet.PropertyParser
Shorthand for:
PropertyParser(elemName, "name", "value").
PropertyParser(QName, String, String) - Constructor for class org.cantaloop.cgimlet.PropertyParser
Creates a new customized PropertyParser instance.
PropertyParserUTest - class org.cantaloop.cgimlet.testing.PropertyParserUTest.
PropertyParserTest.java
PropertyParserUTest(String) - Constructor for class org.cantaloop.cgimlet.testing.PropertyParserUTest
 
PROTECTED - Static variable in class org.cantaloop.cgimlet.lang.Modifier.Access
 
PUBLIC - Static variable in class org.cantaloop.cgimlet.lang.Modifier.Access
 

Q

quote(String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
quote(String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
 

R

read() - Method in class org.cantaloop.cgimlet.OptionReader
Read the options of the root element of this reader.
read(Element) - Method in class org.cantaloop.cgimlet.OptionReader
Read the options of root.
registerHandler(String, ComponentHandler) - Method in class org.cantaloop.cgimlet.ProjectGenerator
Register a handler.
replaceProperties(Element) - Method in class org.cantaloop.cgimlet.PropertyParser
Replace all properties in the xml tree starting with element root.
resolveFilename(String) - Method in class org.cantaloop.cgimlet.ProjectGenerator
Resolves the abstract pathname name against the base directory of the project.
result - Variable in class org.cantaloop.cgimlet.testing.TestHandler
 
run() - Method in class org.cantaloop.cgimlet.ProjectRunner
Run the code generation process.
run() - Method in class org.cantaloop.cgimlet.ProjectGenerator
Run the codegeneration.
runAndCatch() - Method in class org.cantaloop.cgimlet.ProjectRunner
Run the code codegeneration process, catch all exceptions and dipslay a error message (if necessary).

S

s_gen - Static variable in class org.cantaloop.cgimlet.ProjectRunner
 
setAccess(Access) - Method in class org.cantaloop.cgimlet.lang.AbstractModifier
 
setAccess(Modifier.Access) - Method in interface org.cantaloop.cgimlet.lang.Modifier
 
setBaseDir(File) - Method in class org.cantaloop.cgimlet.lang.AbstractCodeWriter
 
setBaseDir(File) - Method in interface org.cantaloop.cgimlet.lang.CodeWriter
Set the base directory of the generated files.
setBody(String) - Method in interface org.cantaloop.cgimlet.lang.ConstructorTemplate
Set the body of the constructor.
setBody(String) - Method in class org.cantaloop.cgimlet.lang.java.JConstructorTemplate
 
setDebug(boolean) - Method in class org.cantaloop.cgimlet.ProjectRunner
Enables debugging output.
setDebug(boolean) - Method in class org.cantaloop.cgimlet.ProjectGenerator
 
setDebug(boolean) - Method in class org.cantaloop.cgimlet.ProjectGeneratorTask
Enables debugging output.
setDefaults(Options) - Method in class org.cantaloop.cgimlet.Options
Set the default values that should be used.
setFinal(boolean) - Method in class org.cantaloop.cgimlet.lang.AbstractModifier
 
setFinal(boolean) - Method in interface org.cantaloop.cgimlet.lang.Modifier
 
setForceToolsJar(boolean) - Method in class org.cantaloop.cgimlet.lang.java.JCompiler
Specify if the compiler should try to invoke javac in an external process if tools.jar could not be found.
setInitValue(String) - Method in interface org.cantaloop.cgimlet.lang.FieldTemplate
Sets the code the field should be initialized with.
setInitValue(String) - Method in class org.cantaloop.cgimlet.lang.java.JFieldTemplate
 
setLogger(Logger) - Method in interface org.cantaloop.cgimlet.lang.CodeCompiler
Sets the logger that should be used to log the messages of the compiler
setLogger(Logger) - Method in class org.cantaloop.cgimlet.lang.java.JCompiler
 
setLogLevel(int) - Method in class org.cantaloop.cgimlet.ProjectGenerator
Set the log level of the ProjectGenerator.
setModifier(Modifier) - Method in interface org.cantaloop.cgimlet.lang.FieldTemplate
 
setModifier(Modifier) - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
Sets the modifier of this method.
setModifier(Modifier) - Method in class org.cantaloop.cgimlet.lang.java.AbstractTemplate
 
setOption(String, String) - Method in class org.cantaloop.cgimlet.Options
Convenient method.
setOption(String, String) - Method in class org.cantaloop.cgimlet.OptionReader
Set option key to value.
setOption(String, String) - Method in interface org.cantaloop.cgimlet.OptionSetter
Invoked every time a option is read.
setOptions(Options) - Method in class org.cantaloop.cgimlet.OptionReader
Set the options instance the values are written to.
setOptionSetter(OptionSetter) - Method in class org.cantaloop.cgimlet.OptionReader
Set a handler which is called whenever a option has been read.
setParent(String) - Method in interface org.cantaloop.cgimlet.lang.ClassTemplate
Sets the name of the parent class (you must specify the fully qualified name if it is not in the same package).
setParent(String) - Method in class org.cantaloop.cgimlet.lang.java.JClassTemplate
 
setPrettyPrintConfiguration(File) - Method in class org.cantaloop.cgimlet.lang.AbstractCodeWriter
 
setPrettyPrintConfiguration(File) - Method in interface org.cantaloop.cgimlet.lang.CodeWriter
Set the configuration file for the pretty printer.
setPrettyPrinting(boolean) - Method in class org.cantaloop.cgimlet.ProjectRunner
Set if the generated files should be pretty printed.
setPrettyPrinting(boolean) - Method in class org.cantaloop.cgimlet.ProjectGenerator
 
setPrettyPrinting(boolean) - Method in class org.cantaloop.cgimlet.ProjectGeneratorTask
Set if the generated files should be pretty printed.
setPrettyPrinting(boolean) - Method in class org.cantaloop.cgimlet.lang.AbstractCodeWriter
 
setPrettyPrinting(boolean) - Method in interface org.cantaloop.cgimlet.lang.CodeWriter
Specify if generated files should be pretty-printed.
setProjectFile(File) - Method in class org.cantaloop.cgimlet.Main
Set the project file.
setProjectFile(String) - Method in class org.cantaloop.cgimlet.ProjectRunner
Set the project file as a string.
setProjectFile(String) - Method in class org.cantaloop.cgimlet.ProjectGeneratorTask
Set the project file as a string.
setQuiet(boolean) - Method in class org.cantaloop.cgimlet.ProjectRunner
Set if the codegeneration should be extra quiet.
setQuiet(boolean) - Method in class org.cantaloop.cgimlet.ProjectGeneratorTask
Set if the codegeneration should be extra quiet.
setReturnType(Type) - Method in interface org.cantaloop.cgimlet.lang.MethodTemplate
 
setReturnType(Type) - Method in class org.cantaloop.cgimlet.lang.java.JMethodTemplate
 
setRootElement(Element) - Method in class org.cantaloop.cgimlet.OptionReader
Set the element that should be used as the root element.
setStatic(boolean) - Method in class org.cantaloop.cgimlet.lang.AbstractModifier
 
setStatic(boolean) - Method in interface org.cantaloop.cgimlet.lang.Modifier
 
setStdErr(String) - Method in class org.cantaloop.cgimlet.lang.CompileException
Sets the message that was written to standard error by the compiler.
setStdOut(String) - Method in class org.cantaloop.cgimlet.lang.CompileException
Sets the message that was written to standard out by the compiler.
setTargetDir(File) - Method in interface org.cantaloop.cgimlet.lang.CodeCompiler
Sets the directory under which the compiled files should be placed.
setTargetDir(File) - Method in class org.cantaloop.cgimlet.lang.java.JCompiler
 
setter(FieldTemplate) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
setter(FieldTemplate) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Factory method that returns a template for a set-method.
setter(String, FieldTemplate) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Factory method that returns a template for a set-method.
setter(String, FieldTemplate) - Method in class org.cantaloop.cgimlet.lang.java.JUtils
 
setType(Type) - Method in interface org.cantaloop.cgimlet.lang.FieldTemplate
 
setType(Type) - Method in class org.cantaloop.cgimlet.lang.java.JFieldTemplate
 
setUp() - Method in class org.cantaloop.cgimlet.ProjectGeneratorUTest
 
setUp() - Method in class org.cantaloop.cgimlet.testing.PropertyParserUTest
 
setUseToolsJar(boolean) - Method in class org.cantaloop.cgimlet.lang.java.JCompiler
Specifies if the compiler should try to use the javac compiler directly (that is, without starting another virtual machine).
setVerbose(boolean) - Method in class org.cantaloop.cgimlet.ProjectRunner
Set if the codegeneration should be verbose.
setVerbose(boolean) - Method in class org.cantaloop.cgimlet.ProjectGeneratorTask
Set if the codegeneration should be verbose.
sprintf(String, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
sprintf(String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Shorthand for sprintf(str, new String[]{arg1}).
sprintf(String, String[]) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
sprintf(String, String[]) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
This method acts like the sprintf routine in C.
sprintf(String, String, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
sprintf(String, String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Shorthand for sprintf(str, new String[]{arg1,arg2}).
sprintf(String, String, String, String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
sprintf(String, String, String, String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Shorthand for sprintf(str, new String[]{arg1,arg2,arg3}).
stringToBoolean(String, boolean) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
stringToBoolean(String, boolean) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Converts a String into a boolean. The "boolean value" of a string is defined as following:
"yes".equals(s) || "true".equals(s) || "on".equals(s). If s == null the value of def is returned.

T

Template - interface org.cantaloop.cgimlet.lang.Template.
Basic requirements for a template.
test1() - Method in class org.cantaloop.cgimlet.testing.PrintfUTest
 
test2() - Method in class org.cantaloop.cgimlet.testing.PrintfUTest
 
test3() - Method in class org.cantaloop.cgimlet.testing.PrintfUTest
 
test4() - Method in class org.cantaloop.cgimlet.testing.PrintfUTest
 
testGenerate() - Method in class org.cantaloop.cgimlet.ProjectGeneratorUTest
 
TestHandler - class org.cantaloop.cgimlet.testing.TestHandler.
TestHandler.java
TestHandler() - Constructor for class org.cantaloop.cgimlet.testing.TestHandler
 
testHandlers() - Method in class org.cantaloop.cgimlet.ProjectGeneratorUTest
 
testInit() - Method in class org.cantaloop.cgimlet.ProjectGeneratorUTest
 
testJavacCompilation() - Method in class org.cantaloop.cgimlet.testing.JCompilerUTest
 
testOptions() - Method in class org.cantaloop.cgimlet.ProjectGeneratorUTest
 
testParsingOfProperties() - Method in class org.cantaloop.cgimlet.testing.PropertyParserUTest
 
testToolsJarCompilation() - Method in class org.cantaloop.cgimlet.testing.JCompilerUTest
 
toFinalIdentifier(String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
toFinalIdentifier(String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Convert s into a identifier which can be used for final fields etc.
toIdentifier(String) - Method in class org.cantaloop.cgimlet.lang.AbstractUtils
 
toIdentifier(String) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Shorthand for toIdentifier(s, false);
toIdentifier(String, boolean) - Method in interface org.cantaloop.cgimlet.lang.CGUtils
Convert s into an indentifier.
toIdentifier(String, boolean) - Method in class org.cantaloop.cgimlet.lang.java.JUtils
 
toString() - Method in class org.cantaloop.cgimlet.CodeGenerationException
Returns a string representation of the exception, including the error message of the nested exception (if available).
toString() - Method in class org.cantaloop.cgimlet.lang.Type
 
toString() - Method in class org.cantaloop.cgimlet.lang.java.JLanguageFactory.JModifier
 
Type - class org.cantaloop.cgimlet.lang.Type.
This class represents the type of a certain variable.
Type(String) - Constructor for class org.cantaloop.cgimlet.lang.Type
 

U

UTILS - Static variable in class org.cantaloop.cgimlet.lang.java.AbstractTemplate
 

W

write(ClassTemplate) - Method in interface org.cantaloop.cgimlet.lang.CodeWriter
Write the code for tmpl.
write(ClassTemplate) - Method in class org.cantaloop.cgimlet.lang.java.JavaClassWriter
 
write(ClassTemplate[]) - Method in interface org.cantaloop.cgimlet.lang.CodeWriter
Write the code for tmpls.
write(ClassTemplate[]) - Method in class org.cantaloop.cgimlet.lang.java.JavaClassWriter
 

X

XMLUtils - class org.cantaloop.cgimlet.XMLUtils.
This class provides some useful methods that helps you with common XML tasks.
XMLUtils() - Constructor for class org.cantaloop.cgimlet.XMLUtils
 

A B C D E F G I J L M N O P Q R S T U W X
Copyright 2001, 2002 Stefan Heimann, David Leuschner. All rights reserved.