本文整理汇总了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;
}
示例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;
}
示例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);
}
}
示例4: addPostProcessor
import org.eclipse.xpand2.output.PostProcessor; //导入依赖的package包/类
public void addPostProcessor(PostProcessor postProcessor) {
this.postProcessors.add(postProcessor);
}
示例5: getPostProcessors
import org.eclipse.xpand2.output.PostProcessor; //导入依赖的package包/类
public List<PostProcessor> getPostProcessors() {
return postProcessors;
}
示例6: addPostProcessor
import org.eclipse.xpand2.output.PostProcessor; //导入依赖的package包/类
public void addPostProcessor(final PostProcessor postProcessor) {
this.postProcessors.add(postProcessor);
}