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


Java EmptyGoal类代码示例

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


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

示例1: Serialized

import polyglot.frontend.goals.EmptyGoal; //导入依赖的package包/类
@Override
  public Goal Serialized (Job job) 
  {	
Goal g = null;
g = internGoal(new EmptyGoal(job, "empty goal")
{
	@Override
	public Collection<Goal> prerequisiteGoals (Scheduler scheduler) 
	{
		List<Goal> l = new ArrayList<Goal>();
		l.addAll(super.prerequisiteGoals(scheduler));
		try {
			l.add(SparkCodeGenerated(job));
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return l;
	}
});
         
      return g;
  }
 
开发者ID:uwplse,项目名称:Casper,代码行数:24,代码来源:CasperScheduler.java

示例2: PreRemoveCE

import polyglot.frontend.goals.EmptyGoal; //导入依赖的package包/类
public Goal PreRemoveCE(Job job) {
	Goal g = new EmptyGoal(job, "PreRemoveCE");
	try {
		// Serialize before translating away!
		g.addPrerequisiteGoal(Serialized(job), this);
		g.addPrerequisiteGoal(this.helper().AnalysesDone(job), this);
	} catch (CyclicDependencyException e) {
		throw new InternalCompilerError(e);
	}
	return internGoal(g);
}
 
开发者ID:HarvardPL,项目名称:cryptoerase,代码行数:12,代码来源:CEScheduler.java

示例3: CodeGenerated

import polyglot.frontend.goals.EmptyGoal; //导入依赖的package包/类
@Override
public Goal CodeGenerated(Job job) {
    // Because we want the target language to compile our
    // translation, do not generate code now.
    Goal g = new EmptyGoal(job, "CodeGenerated");
    // Add a prerequisite goal to translate cryptoerase features.
    try {
        g.addPrerequisiteGoal(RemoveCE(job), this);
    }
    catch (CyclicDependencyException e) {
        throw new InternalCompilerError(e);
    }
    return internGoal(g);
}
 
开发者ID:HarvardPL,项目名称:cryptoerase,代码行数:15,代码来源:CEScheduler.java


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