Package org.eigenbase.resgen

## Class JavaBaseGenerator

- java.lang.Object
- - org.eigenbase.resgen.AbstractGenerator
  - - org.eigenbase.resgen.AbstractJavaGenerator
    - - org.eigenbase.resgen.JavaBaseGenerator

All Implemented Interfaces:
  `Generator`

Direct Known Subclasses:
  `JavaFunctorBaseGenerator`

    class JavaBaseGenerator
    extends AbstractJavaGenerator

Generates a Java class for the base locale.

Since:
  19 September, 2005
Version:
  $Id: //open/util/resgen/src/org/eigenbase/resgen/JavaBaseGenerator.java#4 $
Author:
  jhyde

### Nested Class Summary

Nested Classes
`(package private) class` `JavaBaseGenerator.ExceptionDescription` Description of the constructs that an exception class has.

### Field Summary

Fields
`protected java.util.Set` `warnedClasses`

### Fields inherited from class org.eigenbase.resgen.AbstractJavaGenerator

`baseClassName, className, resourceBundle`

### Constructor Summary

Constructors
`JavaBaseGenerator​(java.io.File srcFile, java.io.File file, java.lang.String className, java.lang.String baseClassName, ResourceDef.ResourceBundle resourceBundle)`

### Method Summary

All Methods Static Methods Instance Methods Concrete Methods
`protected static java.lang.String` `addLists​(java.lang.String x, java.lang.String y)`
`protected static java.lang.String` `addLists​(java.lang.String x, java.lang.String y, java.lang.String z)`
`void` `generateModule​(ResourceGen generator, ResourceDef.ResourceBundle resourceList, java.io.PrintWriter pw)` Generates a class containing a line for each resource.
`void` `generateResource​(ResourceDef.Resource resource, java.io.PrintWriter pw)` Generates code for a particular resource.
`protected void` `postModule​(java.io.PrintWriter pw)`

### Methods inherited from class org.eigenbase.resgen.AbstractJavaGenerator

`generateFooter, generateHeader, getArgTypes, getBaseClassName, getClassName, getErrorClass, getPackageName`

### Methods inherited from class org.eigenbase.resgen.AbstractGenerator

`generateDoNotModifyHeader, generateGeneratedByBlock, getArgumentList, getFile, getParameterList, getSrcFileForComment, setScmSafeComments, useScmSafeComments`

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

### Field Detail

#### warnedClasses

    protected final java.util.Set warnedClasses

### Constructor Detail

#### JavaBaseGenerator

    JavaBaseGenerator​(java.io.File srcFile,
                      java.io.File file,
                      java.lang.String className,
                      java.lang.String baseClassName,
                      ResourceDef.ResourceBundle resourceBundle)

### Method Detail

#### generateModule

    public void generateModule​(ResourceGen generator,
                               ResourceDef.ResourceBundle resourceList,
                               java.io.PrintWriter pw)

Description copied from interface: `Generator`
Generates a class containing a line for each resource.

#### postModule

    protected void postModule​(java.io.PrintWriter pw)

#### generateResource

    public void generateResource​(ResourceDef.Resource resource,
                                 java.io.PrintWriter pw)

Description copied from class: `AbstractGenerator`
Generates code for a particular resource.

Specified by:
  `generateResource` in class `AbstractGenerator`

#### addLists

    protected static java.lang.String addLists​(java.lang.String x,
                                               java.lang.String y)

#### addLists

    protected static java.lang.String addLists​(java.lang.String x,
                                               java.lang.String y,
                                               java.lang.String z)