/*
* Author: Mike Atkinson
*
* This software has been developed under the copyleft
* rules of the GNU General Public License. Please
* consult the GNU General Public License for more
* details about use and distribution of this software.
*/
package net.sourceforge.jrefactory.ast;
import net.sourceforge.jrefactory.parser.JavaParser;
import net.sourceforge.jrefactory.parser.JavaParserVisitor;
/**
* The switch statement
*
* @author Mike Atkinson
* @since jRefactory 2.9.0, created October 16, 2003
*/
public class ASTSwitchStatement extends SimpleNode {
/**
* Constructor for the ASTSwitchStatement node.
*
* @param identifier The id of this node (JJTSWITCHSTATEMENT).
*/
public ASTSwitchStatement(int identifier) {
super(identifier);
}
/**
* Constructor for the ASTSwitchStatement node.
*
* @param parser The JavaParser that created this ASTSwitchStatement node.
* @param identifier The id of this node (JJTSWITCHSTATEMENT).
*/
public ASTSwitchStatement(JavaParser parser, int identifier) {
super(parser, identifier);
}
/**
* Accept the visitor.
*
* @param visitor An implementation of JavaParserVisitor that processes the ASTSwitchStatement node.
* @param data Some data being passed between the visitor methods.
* @return Usually the data parameter (possibly modified).
*/
public Object jjtAccept(JavaParserVisitor visitor, Object data) {
return visitor.visit(this, data);
}
}
|