|
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
org.jboss.logging.model.ImplementationClassModel
public abstract class ImplementationClassModel
An abstract code model to create the source file that implements the interface.
Essentially this uses the com.sun.codemodel.internal.JCodeModel to generate the source files with. This class is for convenience in generating default source files.
| Constructor Summary | |
|---|---|
protected |
ImplementationClassModel(String interfaceName,
MethodDescriptors methodDescriptors,
String projectCode,
ImplementationType type)
Class constructor. |
| Method Summary | |
|---|---|
protected com.sun.codemodel.internal.JCodeModel |
generateModel()
Generate the code corresponding to this class model |
MethodDescriptors |
getMethodDescriptors()
Returns the method descriptions. |
ImplementationType |
getType()
Returns the implementation type. |
protected void |
initCause(com.sun.codemodel.internal.JVar result,
com.sun.codemodel.internal.JClass returnField,
com.sun.codemodel.internal.JBlock body,
MethodDescriptor methodDesc,
com.sun.codemodel.internal.JInvocation formatterMethod)
Initialize the cause (Throwable) return type. |
| Methods inherited from class org.jboss.logging.model.ClassModel |
|---|
addMessageMethod, addMessageMethod, create, getClassName, getCodeModel, getDefinedClass, getProjectCode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ImplementationClassModel(String interfaceName,
MethodDescriptors methodDescriptors,
String projectCode,
ImplementationType type)
interfaceName - the interface name to implement.methodDescriptors - the method descriptionsprojectCode - the project code to prepend messages with.type - the type of the implementation.| Method Detail |
|---|
public final ImplementationType getType()
public final MethodDescriptors getMethodDescriptors()
protected com.sun.codemodel.internal.JCodeModel generateModel()
throws IllegalStateException
generateModel in class ClassModelIllegalStateException - if the class has already been defined.
protected void initCause(com.sun.codemodel.internal.JVar result,
com.sun.codemodel.internal.JClass returnField,
com.sun.codemodel.internal.JBlock body,
MethodDescriptor methodDesc,
com.sun.codemodel.internal.JInvocation formatterMethod)
result - the return variablereturnField - the return fieldbody - the body of the methodmethodDesc - the method descriptionformatterMethod - the formatter method used to format the string cause
|
JBoss Logging I18n Tools 1.0.0.Beta7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||