Package com.cloudbees.groovy.cps.tool
Class Translator
java.lang.Object
com.cloudbees.groovy.cps.tool.Translator
Generates, for example,
CpsDefaultGroovyMethods from the source code of DefaultGroovyMethods.-
Constructor Summary
ConstructorsConstructorDescriptionParse the source code and prepare for translations. -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateTo(com.sun.codemodel.CodeWriter cw) Generate transalted result into source files.voidTransforms a single class.
-
Constructor Details
-
Translator
Parse the source code and prepare for translations.- Throws:
IOException
-
-
Method Details
-
translate
public void translate(String fqcn, String outfqcn, String sourceJarName) throws com.sun.codemodel.JClassAlreadyExistsException Transforms a single class.- Throws:
com.sun.codemodel.JClassAlreadyExistsException
-
generateTo
Generate transalted result into source files.- Throws:
IOException
-