44package de .uka .ilkd .key .java .transformations .pipeline ;
55
66
7-
87import com .github .javaparser .ast .CompilationUnit ;
98import com .github .javaparser .ast .Node ;
109import com .github .javaparser .ast .body .TypeDeclaration ;
1110import org .jspecify .annotations .NullMarked ;
1211
1312/**
14- * The JavaDL requires some implicit fields, that are available in each
15- * Java class. The name of the implicit fields starts usually with a dollar sign.
16- * (in the age of recoder it was enclosed in angle brackets).
17- * <p>
18- * To access the fields in a uniform way, they are added as usual
19- * fields to the classes, in particular this allows us to parse them in
20- * easier.
21- * For further information see also
22- * <ul>
23- * <li>{@link ImplicitFieldAdder}</li>
24- * <li>{@link CreateObjectBuilder}</li>
25- * <li>{@link PrepareObjectBuilder}</li>
26- * </ul>
27- * <p>
28- * Performance of these classes was low, so information that is shared between
29- * all instances of a transformation set has been outsourced to a transformation
30- * cache.
13+ * {@link SimpleJavaTransformer} with an internal state towards the current
14+ * {@link TransformationPipelineServices}
15+ * and {@link TransformationPipelineServices.TransformerCache}. These fields are set by the
16+ * constructor, and given by
17+ * the {@link de.uka.ilkd.key.java.transformations.KeYJavaPipeline}.
18+ *
19+ * @author weigl
20+ * @see de.uka.ilkd.key.java.transformations.KeYJavaPipeline
3121 */
3222@ NullMarked
33- public abstract class JavaTransformer {
23+ public abstract class JavaTransformer implements SimpleJavaTransformer {
3424 /**
3525 * Further services and helper function for this pipeline step.
3626 */
@@ -47,8 +37,7 @@ public abstract class JavaTransformer {
4737 /**
4838 * creates a transformer for the recoder model
4939 *
50- * @param services
51- * the CrossReferenceServiceConfiguration to access
40+ * @param services the CrossReferenceServiceConfiguration to access
5241 * model information
5342 */
5443 public JavaTransformer (TransformationPipelineServices services ) {
@@ -62,8 +51,11 @@ public JavaTransformer(TransformationPipelineServices services) {
6251 * descend in inner classes you have to implement the recursion by
6352 * yourself.
6453 */
65- public void apply (TypeDeclaration <?> td ) {}
54+ @ Override
55+ public void apply (TypeDeclaration <?> td ) {
56+ }
6657
58+ @ Override
6759 public void apply (CompilationUnit cu ) {
6860 for (TypeDeclaration <?> type : cu .getTypes ()) {
6961 apply (type );
0 commit comments