01: /* Generated By:JJTree: Do not edit this line. ASTBooleanLiteral.java */
02:
03: package net.sourceforge.pmd.ast;
04:
05: public class ASTBooleanLiteral extends SimpleJavaNode {
06: public ASTBooleanLiteral(int id) {
07: super (id);
08: }
09:
10: public ASTBooleanLiteral(JavaParser p, int id) {
11: super (p, id);
12: }
13:
14: private boolean isTrue;
15:
16: public void setTrue() {
17: isTrue = true;
18: }
19:
20: public boolean isTrue() {
21: return this .isTrue;
22: }
23:
24: /**
25: * Accept the visitor. *
26: */
27: public Object jjtAccept(JavaParserVisitor visitor, Object data) {
28: return visitor.visit(this , data);
29: }
30:
31: public void dump(String prefix) {
32: String out = isTrue ? "true" : "false";
33: System.out.println(toString(prefix) + ":" + out);
34: dumpChildren(prefix);
35: }
36:
37: }
|