01: /* Generated By:JJTree: Do not edit this line. ASTLiteral.java */
02:
03: package net.sourceforge.pmd.ast;
04:
05: public class ASTLiteral extends SimpleJavaNode {
06: public ASTLiteral(int id) {
07: super (id);
08: }
09:
10: public ASTLiteral(JavaParser p, int id) {
11: super (p, id);
12: }
13:
14: /**
15: * Accept the visitor. *
16: */
17: public Object jjtAccept(JavaParserVisitor visitor, Object data) {
18: return visitor.visit(this , data);
19: }
20:
21: public boolean isStringLiteral() {
22: return getImage() != null && getImage().startsWith("\"")
23: && getImage().endsWith("\"");
24: }
25: }
|