本文整理汇总了Java中com.morcinek.android.codegenerator.CodeGenerator类的典型用法代码示例。如果您正苦于以下问题:Java CodeGenerator类的具体用法?Java CodeGenerator怎么用?Java CodeGenerator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CodeGenerator类属于com.morcinek.android.codegenerator包,在下文中一共展示了CodeGenerator类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createCodeGenerator
import com.morcinek.android.codegenerator.CodeGenerator; //导入依赖的package包/类
public static CodeGenerator createCodeGenerator(String templateName, ResourceProvidersFactory resourceProvidersFactory) {
return new CodeGenerator(XMLResourceExtractor.createResourceExtractor(),
new FileNameExtractor(),
//FIXME change ResourceTemplateProvider for PreferencesTemplateProvider
new TemplateCodeGenerator(templateName, resourceProvidersFactory, TemplateSettings.getInstance()));
}
示例2: LayoutActionHandler
import com.morcinek.android.codegenerator.CodeGenerator; //导入依赖的package包/类
public LayoutActionHandler(CodeGenerator codeGenerator, String resourceName) {
this.codeGenerator = codeGenerator;
this.resourceName = resourceName;
}
示例3: createCodeGenerator
import com.morcinek.android.codegenerator.CodeGenerator; //导入依赖的package包/类
public CodeGenerator createCodeGenerator(String templateName, ResourceProvidersFactory resourceProvidersFactory) {
return new CodeGenerator(XMLResourceExtractor.createResourceExtractor(),
new FileNameExtractor(),
new TemplateCodeGenerator(templateName, resourceProvidersFactory, new PreferenceTemplateProvider()));
}
示例4: getGeneratedCode
import com.morcinek.android.codegenerator.CodeGenerator; //导入依赖的package包/类
private String getGeneratedCode(IFile selectedFile) throws ParserConfigurationException, SAXException, XPathExpressionException, IOException, CoreException {
CodeGenerator codeGenerator = Activator.getDefault().createCodeGenerator("Menu_template", new MenuResourceProvidersFactory());
return codeGenerator.produceCode(selectedFile.getContents(), selectedFile.getName());
}