Examples of buildTranslatorBlock()


Examples of com.ardublock.translator.block.TranslatorBlockFactory.buildTranslatorBlock()

 
  public String translate(Long blockId) throws SocketNullException, SubroutineNotDeclaredException, BlockException
  {
    TranslatorBlockFactory translatorBlockFactory = new TranslatorBlockFactory();
    Block block = workspace.getEnv().getBlock(blockId);
    TranslatorBlock rootTranslatorBlock = translatorBlockFactory.buildTranslatorBlock(this, blockId, block.getGenusName(), "", "", block.getBlockLabel());
    return rootTranslatorBlock.toCode();
  }
 
  public BlockAdaptor getBlockAdaptor()
  {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.