|
JBoss Logging I18n Tools 1.0.0.Beta7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.logging.model.ClassModel
public abstract class ClassModel
The basic java class model.
| Constructor Summary | |
|---|---|
|
ClassModel(String className,
String superClassName)
Construct a class model. |
protected |
ClassModel(String className,
String projectCode,
String superClassName,
String... interfaceNames)
Construct a class model. |
| Method Summary | |
|---|---|
protected com.sun.codemodel.internal.JMethod |
addMessageMethod(MethodDescriptor methodDescriptor)
Adds a method to return the message value. |
protected com.sun.codemodel.internal.JMethod |
addMessageMethod(MethodDescriptor methodDescriptor,
String messageValue)
Adds a method to return the message value. |
void |
create(JavaFileObject fileObject)
Creates the source file. |
protected com.sun.codemodel.internal.JCodeModel |
generateModel()
Generate the code corresponding to this class model |
String |
getClassName()
Get the class name. |
com.sun.codemodel.internal.JCodeModel |
getCodeModel()
|
com.sun.codemodel.internal.JDefinedClass |
getDefinedClass()
Returns the main enclosing class. |
String |
getProjectCode()
Get the project code from the annotation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassModel(String className,
String superClassName)
className - the qualified class name.superClassName - the qualified super class name.
protected ClassModel(String className,
String projectCode,
String superClassName,
String... interfaceNames)
className - the qualified class name.projectCode - the project code.superClassName - the super class name.interfaceNames - an array of interfaces to implement.| Method Detail |
|---|
public final void create(JavaFileObject fileObject)
throws IOException,
IllegalStateException
fileObject - the files object to write the source to.
IOException - if the file could not be written.
IllegalStateException - if the implementation is in an invalid state.
protected com.sun.codemodel.internal.JCodeModel generateModel()
throws IllegalStateException
IllegalStateException - if the class has already been defined.protected com.sun.codemodel.internal.JMethod addMessageMethod(MethodDescriptor methodDescriptor)
org.jboss.logging.Message. This method will
be appended with $str.
If the message method has already been defined the previously created method is returned.
methodDescriptor - the method descriptor.
IllegalStateException - if this method is called before the generateModel method
protected com.sun.codemodel.internal.JMethod addMessageMethod(MethodDescriptor methodDescriptor,
String messageValue)
org.jboss.logging.Message. This method will
be appended with $str.
If the message method has already been defined the previously created method is returned.
methodDescriptor - the method descriptor.messageValue - the message value.
IllegalStateException - if this method is called before the generateModel methodpublic com.sun.codemodel.internal.JCodeModel getCodeModel()
public final com.sun.codemodel.internal.JDefinedClass getDefinedClass()
public final String getClassName()
public String getProjectCode()
null if one was not specified.
|
JBoss Logging I18n Tools 1.0.0.Beta7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||