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: * An expression that takes only a single argument that is not + or minus.
16: *
17: * @author Mike Atkinson
18: * @since jRefactory 2.9.0, created October 16, 2003
19: */
20: public class ASTUnaryExpressionNotPlusMinus extends NamedNode {
21: //private String name = "";
22:
23: /**
24: * Constructor for the ASTUnaryExpressionNotPlusMinus node.
25: *
26: * @param identifier The id of this node (JJTUNARYEXPRESSIONNOTPLUSMINUSEXPRESSION).
27: */
28: public ASTUnaryExpressionNotPlusMinus(int identifier) {
29: super (identifier);
30: }
31:
32: /**
33: * Constructor for the ASTUnaryExpressionNotPlusMinus node.
34: *
35: * @param parser The JavaParser that created this ASTUnaryExpressionNotPlusMinus node.
36: * @param identifier The id of this node (JJTUNARYEXPRESSIONNOTPLUSMINUSEXPRESSION).
37: */
38: public ASTUnaryExpressionNotPlusMinus(JavaParser parser,
39: int identifier) {
40: super (parser, identifier);
41: }
42:
43: /**
44: * Set the expressions's name
45: *
46: * @param newName the new name (should be "~" or "!)
47: */
48: //public void setName(String newName) {
49: // name = newName.intern();
50: //}
51:
52: /**
53: * Get the expressions's name
54: *
55: * @return the name (should be "~" or "!) or null if the expression were a cast or postfix expression.
56: */
57: //public String getName() {
58: // return name;
59: //}
60:
61: /**
62: * Accept the visitor.
63: *
64: * @param visitor An implementation of JavaParserVisitor that processes the ASTUnaryExpressionNotPlusMinus node.
65: * @param data Some data being passed between the visitor methods.
66: * @return Usually the data parameter (possibly modified).
67: */
68: public Object jjtAccept(JavaParserVisitor visitor, Object data) {
69: return visitor.visit(this, data);
70: }
71: }
|