本文整理汇总了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;
}
示例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);
}
示例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);
}