View Javadoc

1   /* Generated By:JJTree: Do not edit this line. ASTStringLiteral.java */
2   
3   package org.osoco.dyninc.parser;
4   
5   import org.osoco.dyninc.Context;
6   
7   
8   public class ASTStringLiteral extends SimpleNode {
9       protected String literal;
10    public ASTStringLiteral(int id) {
11      super(id);
12    }
13  
14    public ASTStringLiteral(Parser p, int id) {
15      super(p, id);
16    }
17  
18    public static Node jjtCreate(int id) {
19        return new ASTStringLiteral(id);
20    }
21  
22    public static Node jjtCreate(Parser p, int id) {
23        return new ASTStringLiteral(p, id);
24    }
25  
26    /*** Accept the visitor. **/
27    public Object jjtAccept(ParserVisitor visitor, Object data) {
28      return visitor.visit(this, data);
29    }
30    
31    
32      /* (non-Javadoc)
33       * @see org.osoco.dyninc.parser.SimpleNode#getValue(java.util.Map)
34       */
35      protected Object getValue(Context context, Object current) throws Exception {
36          return this.literal;
37      }
38  }