public class DefaultSourceCodeGenerator extends Object implements SourceCodeGenerator
| Constructor and Description |
|---|
DefaultSourceCodeGenerator(String generatedSourceDir)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendField(javassist.CtField field,
String value)
Appends the given class field and value to the temporary output.
|
void |
appendMethod(javassist.CtMethod method,
String code)
Appends the given method and source code body to the temporary output.
|
void |
outputGeneratedSource(javassist.CtClass ctClass)
Generates the full source code for the given class and outputs it.
|
public DefaultSourceCodeGenerator(String generatedSourceDir)
generatedSourceDir - the directory in which to put generated source files. If null, the directory
is obtained from a system property (org.opendaylight.yangtools.sal.generatedCodecSourceDir) or
defaults to "generated-codecs".public void appendField(javassist.CtField field,
String value)
SourceCodeGeneratorappendField in interface SourceCodeGeneratorpublic void appendMethod(javassist.CtMethod method,
String code)
SourceCodeGeneratorappendMethod in interface SourceCodeGeneratorpublic void outputGeneratedSource(javassist.CtClass ctClass)
SourceCodeGeneratoroutputGeneratedSource in interface SourceCodeGeneratorCopyright © 2019 OpenDaylight. All rights reserved.