super(goal);
}
public IGoal[] init() {
ExpressionTypeGoal typedGoal = (ExpressionTypeGoal) goal;
StaticConstantAccess expr = (StaticConstantAccess) typedGoal
.getExpression();
Expression dispatcher = expr.getDispatcher();
if (dispatcher instanceof TypeReference) {
TypeReference typeReference = (TypeReference) dispatcher;
return new IGoal[] { new ConstantDeclarationGoal(goal.getContext(),
expr.getConstant().getName(), typeReference.getName()) };
}
return IGoal.NO_GOALS;
}