01: /*
02: * Author: Mike Atkinson
03: *
04: * This software has been developed under the copyleft
05: * rules of the GNU General Public License. Please
06: * consult the GNU General Public License for more
07: * details about use and distribution of this software.
08: */
09: package net.sourceforge.jrefactory.ast;
10:
11: import net.sourceforge.jrefactory.parser.JavaParser;
12: import net.sourceforge.jrefactory.parser.JavaParserVisitor;
13:
14: /**
15: * Contains an expression with instanceof operator
16: *
17: * @author Mike Atkinson
18: * @since jRefactory 2.9.0, created October 16, 2003
19: */
20: public class ASTInstanceOfExpression extends SimpleNode {
21: /**
22: * Constructor for the ASTInstanceOfExpression node.
23: *
24: * @param identifier The id of this node (JJTINSTANCEOFEXPRESSION).
25: */
26: public ASTInstanceOfExpression(int identifier) {
27: super (identifier);
28: }
29:
30: /**
31: * Constructor for the ASTInstanceOfExpression node.
32: *
33: * @param parser The JavaParser that created this ASTInstanceOfExpression node.
34: * @param identifier The id of this node (JJTINSTANCEOFEXPRESSION).
35: */
36: public ASTInstanceOfExpression(JavaParser parser, int identifier) {
37: super (parser, identifier);
38: }
39:
40: /**
41: * Accept the visitor.
42: *
43: * @param visitor An implementation of JavaParserVisitor that processes the ASTInstanceOfExpression node.
44: * @param data Some data being passed between the visitor methods.
45: * @return Usually the data parameter (possibly modified).
46: */
47: public Object jjtAccept(JavaParserVisitor visitor, Object data) {
48: return visitor.visit(this, data);
49: }
50: }
|