1 22 23 package org.jboss.annotation.factory.ast; 24 25 public class ASTMemberValuePair extends SimpleNode { 26 public ASTMemberValuePair(int id) { 27 super(id); 28 } 29 30 public ASTMemberValuePair(AnnotationParser p, int id) { 31 super(p, id); 32 } 33 34 35 36 public Object jjtAccept(AnnotationParserVisitor visitor, Object data) { 37 return visitor.visit(this, data); 38 } 39 40 private ASTIdentifier identifier; 41 private ASTMemberValue value; 42 public void jjtAddChild(Node n, int i) 43 { 44 if ((n instanceof ASTIdentifier) && i == 0) 45 { 46 identifier = (ASTIdentifier)n; 47 return; 48 } 49 if (n instanceof ASTMemberValue) value = (ASTMemberValue)n; 50 } 51 52 public ASTIdentifier getIdentifier() 53 { 54 return identifier; 55 } 56 57 public ASTMemberValue getValue() 58 { 59 return value; 60 } 61 } 62 | Popular Tags |