KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > pmd > ast > ASTLiteral


1 /* Generated By:JJTree: Do not edit this line. ASTLiteral.java */
2
3 package net.sourceforge.pmd.ast;
4
5 public class ASTLiteral extends SimpleJavaNode {
6     public ASTLiteral(int id) {
7         super(id);
8     }
9
10     public ASTLiteral(JavaParser p, int id) {
11         super(p, id);
12     }
13
14     /**
15      * Accept the visitor. *
16      */

17     public Object JavaDoc jjtAccept(JavaParserVisitor visitor, Object JavaDoc data) {
18         return visitor.visit(this, data);
19     }
20
21     public boolean isStringLiteral() {
22         return getImage() != null && getImage().startsWith("\"") && getImage().endsWith("\"");
23     }
24 }
25
Popular Tags