Package com.ardublock.translator.block

Examples of com.ardublock.translator.block.TranslatorBlockFactory


{
  TranslatorBlockFactory translatorBlockFactory;
  public OpenBlocksAdaptor()
  {
    super();
    translatorBlockFactory = new TranslatorBlockFactory();
  }
View Full Code Here


    return setupFunction.toString();
  }
 
  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();
  }
View Full Code Here

TOP

Related Classes of com.ardublock.translator.block.TranslatorBlockFactory

Copyright © 2018 www.massapicom. 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.