org.jboss.logging.model
Class MessageBundleTranslator
java.lang.Object
org.jboss.logging.model.ClassModel
org.jboss.logging.model.MessageBundleTranslator
public class MessageBundleTranslator
- extends ClassModel
The java message bundle class model.
- Author:
- Kevin Pollet - SERLI - (kevin.pollet@serli.com)
|
Method Summary |
com.sun.codemodel.internal.JCodeModel |
generateModel()
Generate the code corresponding to this
class model |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageBundleTranslator
public MessageBundleTranslator(String className,
String superClassName,
Map<MethodDescriptor,String> translations)
- Create a MessageBundle with super class and interface.
- Parameters:
className - the qualified class namesuperClassName - the super class nametranslations - the translation map.
generateModel
public com.sun.codemodel.internal.JCodeModel generateModel()
throws IllegalStateException
- Generate the code corresponding to this
class model
- Overrides:
generateModel in class ClassModel
- Returns:
- the generated code
- Throws:
IllegalStateException - if the class has already been defined.
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.