JBoss Logging I18n Tools 1.0.0.Beta7

org.jboss.logging.generator
Class TranslationClassGenerator

java.lang.Object
  extended by org.jboss.logging.AbstractTool
      extended by org.jboss.logging.generator.TranslationClassGenerator

@SupportedOptions(value="translationFilesPath")
public final class TranslationClassGenerator
extends AbstractTool

The translation class generator.

The aim of this generator is to generate the classes corresponding to translation files of a MessageLogger or MessageBundle.

Author:
Kevin Pollet - SERLI - (kevin.pollet@serli.com)

Field Summary
static String TRANSLATION_FILES_PATH_OPTION
           
 
Constructor Summary
TranslationClassGenerator(ProcessingEnvironment processingEnv)
          Construct an instance of the Translation Class Generator.
 
Method Summary
 void processTypeElement(TypeElement annotation, TypeElement element, MethodDescriptors methodDescriptors)
          Processes a type element.
 
Methods inherited from class org.jboss.logging.AbstractTool
elementUtils, filer, getName, getSupportedOptions, logger, processingEnv, typeUtils
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSLATION_FILES_PATH_OPTION

public static final String TRANSLATION_FILES_PATH_OPTION
See Also:
Constant Field Values
Constructor Detail

TranslationClassGenerator

public TranslationClassGenerator(ProcessingEnvironment processingEnv)
Construct an instance of the Translation Class Generator.

Parameters:
processingEnv - the processing environment
annotations - the annotation descriptor.
loggers - the logger descriptor.
Method Detail

processTypeElement

public void processTypeElement(TypeElement annotation,
                               TypeElement element,
                               MethodDescriptors methodDescriptors)
Processes a type element.

Specified by:
processTypeElement in class AbstractTool
Parameters:
annotation - the annotation who trigger the processing
element - the element that contains the methods.
methodDescriptors - the method descriptors.

JBoss Logging I18n Tools 1.0.0.Beta7

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.