net.sf.nakeduml.feature.Steps Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of metamodel Show documentation
Show all versions of metamodel Show documentation
A uml code generator and execution engine
The newest version!
package net.sf.nakeduml.feature;
public class Steps extends SequenceCalculator {
@Override
protected BeforeAndAfter createStepAndPredecessor(TransformationStep step) {
StepDependency fd = step.getClass().getAnnotation(StepDependency.class);
if (fd == null) {
throw new IllegalArgumentException("Class " + step.getClass().getName() + " does not have a StepDependency annotation");
}
return new BeforeAndAfter(step, fd.before(), fd.after());
}
}