01: /* Generated By:JJTree: Do not edit this line. ASTLiteral.java */
02:
03: package net.sourceforge.pmd.ast;
04:
05: public class ASTLiteral extends SimpleJavaTypeNode {
06:
07: private boolean isInt;
08: private boolean isFloat;
09: private boolean isChar;
10: private boolean isString;
11:
12: public ASTLiteral(int id) {
13: super (id);
14: }
15:
16: public ASTLiteral(JavaParser p, int id) {
17: super (p, id);
18: }
19:
20: /**
21: * Accept the visitor. *
22: */
23: public Object jjtAccept(JavaParserVisitor visitor, Object data) {
24: return visitor.visit(this , data);
25: }
26:
27: public void setIntLiteral() {
28: this .isInt = true;
29: }
30:
31: public boolean isIntLiteral() {
32: return isInt;
33: }
34:
35: public void setFloatLiteral() {
36: this .isFloat = true;
37: }
38:
39: public boolean isFloatLiteral() {
40: return isFloat;
41: }
42:
43: public void setCharLiteral() {
44: this .isChar = true;
45: }
46:
47: public boolean isCharLiteral() {
48: return isChar;
49: }
50:
51: public void setStringLiteral() {
52: this .isString = true;
53: }
54:
55: public boolean isStringLiteral() {
56: return isString;
57: }
58: }
|