forked from phoedos/pmd
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:
@@ -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;
|
||||
|
||||
|
@@ -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. *
|
||||
|
Reference in New Issue
Block a user