package de.dhbwstuttgart.target.tree.expression; import de.dhbwstuttgart.target.tree.type.TargetType; import java.util.List; public record TargetComplexPattern(TargetType type, String name, List subPatterns) implements TargetPattern { @Override public TargetComplexPattern withType(TargetType type) { return new TargetComplexPattern(type, name, subPatterns); } }