|
30 | 30 | import com.helger.css.decl.*; |
31 | 31 | import com.helger.css.decl.visit.ICSSVisitor; |
32 | 32 | import com.helger.css.writer.CSSWriterSettings; |
| 33 | +import jakarta.annotation.Nonnull; |
33 | 34 |
|
34 | | -import javax.annotation.Nonnull; |
35 | | -import java.io.IOException; |
36 | 35 | import java.util.ArrayDeque; |
37 | 36 |
|
38 | 37 | public class GtCssVisitor implements ICSSVisitor { |
39 | | - private TreeContext ctx; |
40 | | - private ArrayDeque<Tree> trees; |
41 | | - private LineReader lr; |
42 | | - private ICSSWriterSettings settings; |
| 38 | + private final TreeContext ctx; |
| 39 | + private final ArrayDeque<Tree> trees; |
| 40 | + private final LineReader lr; |
| 41 | + private final ICSSWriterSettings settings; |
43 | 42 |
|
44 | | - private CascadingStyleSheet sheet; |
45 | | - |
46 | | - public GtCssVisitor(CascadingStyleSheet sheet, LineReader lr) throws IOException { |
| 43 | + public GtCssVisitor(CascadingStyleSheet sheet, LineReader lr) { |
47 | 44 | this.lr = lr; |
48 | 45 | this.settings = new CSSWriterSettings(); |
49 | | - this.sheet = sheet; |
50 | 46 | this.ctx = new TreeContext(); |
51 | 47 | this.trees = new ArrayDeque<>(); |
52 | 48 | Tree root = this.ctx.createTree(symbol(sheet), Tree.NO_LABEL); |
@@ -173,6 +169,12 @@ public void onBeginSupportsRule(@Nonnull CSSSupportsRule aSupportsRule) {} |
173 | 169 | @Override |
174 | 170 | public void onEndSupportsRule(@Nonnull CSSSupportsRule aSupportsRule) {} |
175 | 171 |
|
| 172 | + @Override |
| 173 | + public void onBeginLayerRule(@Nonnull CSSLayerRule aLayerRule) {} |
| 174 | + |
| 175 | + @Override |
| 176 | + public void onEndLayerRule(@Nonnull CSSLayerRule aLayerRule) {} |
| 177 | + |
176 | 178 | @Override |
177 | 179 | public void onUnknownRule(@Nonnull CSSUnknownRule aUnknownRule) {} |
178 | 180 |
|
|
0 commit comments