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)
SourceCodeGenerator
appendField
in interface SourceCodeGenerator
public void appendMethod(javassist.CtMethod method, String code)
SourceCodeGenerator
appendMethod
in interface SourceCodeGenerator
public void outputGeneratedSource(javassist.CtClass ctClass)
SourceCodeGenerator
outputGeneratedSource
in interface SourceCodeGenerator
Copyright © 2019 OpenDaylight. All rights reserved.