当前位置: 首页>>代码示例>>Java>>正文


Java PostProcessor类代码示例

本文整理汇总了Java中org.eclipse.xpand2.output.PostProcessor的典型用法代码示例。如果您正苦于以下问题:Java PostProcessor类的具体用法?Java PostProcessor怎么用?Java PostProcessor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PostProcessor类属于org.eclipse.xpand2.output包,在下文中一共展示了PostProcessor类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createOutlet

import org.eclipse.xpand2.output.PostProcessor; //导入依赖的package包/类
protected Outlet createOutlet(boolean append, String encoding, String name, boolean overwrite, String path) {
	Outlet outlet = new Outlet(append, encoding, name, overwrite, path);
	outlet.addPostprocessor(new NewlineNormalizer(getLineDelimiter()));
	for (PostProcessor pp : getPostProcessors()) {
		outlet.addPostprocessor(pp);
	}
	return outlet;
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:9,代码来源:Generator.java

示例2: createOutlet

import org.eclipse.xpand2.output.PostProcessor; //导入依赖的package包/类
protected Outlet createOutlet(final boolean append, final String encoding, final String name, final boolean overwrite, final String path) {
  final Outlet outlet = new Outlet(append, encoding, name, overwrite, path);
  String _lineDelimiter = this.codeConfig.getLineDelimiter();
  NewlineNormalizer _newlineNormalizer = new NewlineNormalizer(_lineDelimiter);
  outlet.addPostprocessor(_newlineNormalizer);
  for (final PostProcessor pp : this.postProcessors) {
    outlet.addPostprocessor(pp);
  }
  return outlet;
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:11,代码来源:FragmentAdapter.java

示例3: setupOAWJob

import org.eclipse.xpand2.output.PostProcessor; //导入依赖的package包/类
protected void setupOAWJob(Generator generatorJob) {
	generatorJob.setExpand(expandExpression);
	generatorJob.setFileEncoding(fileEncoding);
	
	for (EPackage p : ePackages) {
		generatorJob.addMetaModel(new EmfMetaModel(p));
	}
	
	String prResolver = "";
	for (Outlet o : outlets) {
		generatorJob.addOutlet(o);
		prResolver += o.getPath() + ",";
	}
	prResolver = prResolver.substring(0,prResolver.length()-1);
	
	if (this.checkProtectedRegions) {
		generatorJob.setPrSrcPaths(prResolver);
		generatorJob.setPrExcludes(".svn");
	}
	
	for (String advice : this.advices) {
		generatorJob.addAdvice(advice);
	}
	
	if (beautifyCode) {
		ArrayList<PostProcessor> beautifier = new ArrayList<PostProcessor>();
		beautifier.add(new JavaBeautifier());
		beautifier.add(new XmlBeautifier());
		generatorJob.setBeautifier(beautifier);
	}
}
 
开发者ID:aciancone,项目名称:klapersuite,代码行数:32,代码来源:LazyXpand.java

示例4: addPostProcessor

import org.eclipse.xpand2.output.PostProcessor; //导入依赖的package包/类
public void addPostProcessor(PostProcessor postProcessor) {
	this.postProcessors.add(postProcessor);
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:4,代码来源:Generator.java

示例5: getPostProcessors

import org.eclipse.xpand2.output.PostProcessor; //导入依赖的package包/类
public List<PostProcessor> getPostProcessors() {
	return postProcessors;
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:4,代码来源:Generator.java

示例6: addPostProcessor

import org.eclipse.xpand2.output.PostProcessor; //导入依赖的package包/类
public void addPostProcessor(final PostProcessor postProcessor) {
  this.postProcessors.add(postProcessor);
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:4,代码来源:FragmentAdapter.java


注:本文中的org.eclipse.xpand2.output.PostProcessor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。