KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > aop > annotation > ast > ASTMemberValuePair


1 /* Generated By:JJTree: Do not edit this line. ASTMemberValuePair.java */
2
3 package org.jboss.aop.annotation.ast;
4
5 public class ASTMemberValuePair extends SimpleNode {
6   public ASTMemberValuePair(int id) {
7     super(id);
8   }
9
10   public ASTMemberValuePair(AnnotationParser p, int id) {
11     super(p, id);
12   }
13
14
15   /** Accept the visitor. **/
16   public Object JavaDoc jjtAccept(AnnotationParserVisitor visitor, Object JavaDoc data) {
17     return visitor.visit(this, data);
18   }
19
20    private ASTIdentifier identifier;
21    private ASTMemberValue value;
22    public void jjtAddChild(Node n, int i)
23    {
24       if ((n instanceof ASTIdentifier) && i == 0)
25       {
26          identifier = (ASTIdentifier)n;
27          return;
28       }
29       if (n instanceof ASTMemberValue) value = (ASTMemberValue)n;
30    }
31
32    public ASTIdentifier getIdentifier()
33    {
34       return identifier;
35    }
36
37    public ASTMemberValue getValue()
38    {
39       return value;
40    }
41 }
42
Popular Tags