Class BlocklyToJava
java.lang.Object
net.mcreator.blockly.BlocklyToCode
net.mcreator.blockly.java.BlocklyToJava
- All Implemented Interfaces:
IGeneratorProvider, IWorkspaceProvider
- Direct Known Subclasses:
BlocklyToProcedure
-
Field Summary
Fields inherited from class BlocklyToCode
blockGenerators, editorType, lastProceduralBlockType -
Constructor Summary
ConstructorsConstructorDescriptionBlocklyToJava(Workspace workspace, ModElement parent, BlocklyEditorType blocklyEditorType, String sourceXML, TemplateGenerator templateGenerator, IBlockGenerator... externalGenerators) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThis method is executed after the constructor is called, before the code is generatedMethods inherited from class BlocklyToCode
addCompileNote, addDependency, addTemplate, append, checkIfDepProviderInputsProvide, clearCodeGeneratorBuffer, clearSections, directProcessOutputBlock, directProcessOutputBlockWithoutParentheses, directProcessStatementBlock, getBlockCount, getCompileNotes, getDependencies, getEditorType, getExtraTemplatesCode, getGeneratedCode, getHeadSection, getParent, getStatementInputsMatching, getTailSection, getTemplateGenerator, getUsedBlocks, getWorkspace, popDepProviderInputStack, postBlocksPlacement, preBlocksPlacement, processBlockProcedure, processOutputBlock, processOutputBlockToInt, processOutputBlockToStringCompatible, processOutputBlockWithoutParentheses, processOutputBlockWithoutParentheses, pushDepProviderInputStack, setHeadSection, setTailSectionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IGeneratorProvider
getGenerator, getGeneratorConfiguration, getGeneratorStatsMethods inherited from interface IWorkspaceProvider
getFileManager, getFolderManager, getModElementManager, getWorkspaceFolder, getWorkspaceInfo, getWorkspaceSettings, getWorkspaceUserSettings
-
Constructor Details
-
BlocklyToJava
public BlocklyToJava(Workspace workspace, ModElement parent, BlocklyEditorType blocklyEditorType, String sourceXML, TemplateGenerator templateGenerator, IBlockGenerator... externalGenerators) throws TemplateGeneratorException - Parameters:
workspace-The
Workspaceexecuting the codeblocklyEditorType-Blockly editor type
sourceXML-The XML code used by Blockly
templateGenerator-The folder location in each
Generatorcontaining the code template files- Throws:
TemplateGeneratorException
-
-
Method Details
-
beforeGenerate
protected void beforeGenerate()This method is executed after the constructor is called, before the code is generated
- Overrides:
beforeGeneratein classBlocklyToCode
-