View Javadoc

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