implemented accept and visit

This commit is contained in:
2024-06-08 12:14:16 +00:00
parent e518460e81
commit dcf2a95b4f
5 changed files with 12 additions and 4 deletions

View File

@@ -27,4 +27,7 @@ public class Paragraph implements TextComponent {
return wordcount;
}
@Override
public <T> T accept(Visitor<T> visitor) { return visitor.visit(this); }
}