Remove TokenBasedNode

I don't think we should expose tokens as an API
yet. They're an implementation detail, not used
much, and the AST should be able to reflect all
the information that can be found in the tokens.

The methods of AbstractNode can be pulled down
to AbstractJjtreeNode and made protected.
This commit is contained in:
Clément Fournier
2020-01-05 23:10:09 +01:00
parent 9023d86945
commit 0ff87229ff
14 changed files with 21 additions and 80 deletions

View File

@@ -4,9 +4,9 @@
package net.sourceforge.pmd.lang.jsp.ast;
import net.sourceforge.pmd.lang.java.ast.impl.javacc.AbstractJjtreeNode;
import net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode;
public class AbstractJspNode extends AbstractJjtreeNode<JspNode, Token> implements JspNode {
public class AbstractJspNode extends AbstractJjtreeNode<JspNode> implements JspNode {
protected JspParser parser;

View File

@@ -5,9 +5,8 @@
package net.sourceforge.pmd.lang.jsp.ast;
import net.sourceforge.pmd.lang.ast.Node;
import net.sourceforge.pmd.lang.ast.TokenBasedNode;
public interface JspNode extends Node, TokenBasedNode<Token> {
public interface JspNode extends Node {
/**
* Accept the visitor. *