CodeGenerationRequest

public class CodeGenerationRequest extends Object

Container for the information needed to generate code through the CodeGeneratorService.

Nested Class Summary

interface CodeGenerationRequest.CodeGeneratorCallback  

Public Constructor Summary

CodeGenerationRequest(String xml, CodeGenerationRequest.CodeGeneratorCallback callback, LanguageDefinition generatorsLanguage, List<String> blockDefinitionsFilenames, List<String> blockGeneratorsFilenames)
Constructor for a code generation request.

Public Method Summary

List<String>
List<String>
CodeGenerationRequest.CodeGeneratorCallback
LanguageDefinition
String
getXml()

Inherited Method Summary

Public Constructors

public CodeGenerationRequest (String xml, CodeGenerationRequest.CodeGeneratorCallback callback, LanguageDefinition generatorsLanguage, List<String> blockDefinitionsFilenames, List<String> blockGeneratorsFilenames)

Constructor for a code generation request.

Parameters
xml The xml of a full workspace for which code should be generated.
callback A callback specifying what to do with the generated code.
generatorsLanguage The LanguageDefinition for the core language being used to generate code.
blockDefinitionsFilenames The paths of the js files containing block definitions, relative to file:///android_assets/background_compiler.html.
blockGeneratorsFilenames The path of the js file containing block generators, relative to file:///android_assets/background_compiler.html.

Public Methods

public List<String> getBlockDefinitionsFilenames ()

public List<String> getBlockGeneratorsFilenames ()

public LanguageDefinition getGeneratorLanguageDefinition ()

public String getXml ()