KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > aspectwerkz > expression > ast > ASTTarget


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4
5 /* Generated By:JJTree: Do not edit this line. ASTTarget.java */
6
7 package com.tc.aspectwerkz.expression.ast;
8
9 import com.tc.aspectwerkz.expression.ExpressionInfo;
10
11
12 public class ASTTarget extends SimpleNode {
13
14   private String JavaDoc m_identifier;
15
16   public ASTTarget(int id) {
17     super(id);
18   }
19
20   public ASTTarget(ExpressionParser p, int id) {
21     super(p, id);
22   }
23
24
25   /**
26    * Accept the visitor. *
27    */

28   public Object JavaDoc jjtAccept(ExpressionParserVisitor visitor, Object JavaDoc data) {
29     return visitor.visit(this, data);
30   }
31
32   public void setIdentifier(String JavaDoc identifier) {
33     m_identifier = identifier;
34   }
35
36   public String JavaDoc getIdentifier() {
37     return m_identifier;
38   }
39
40   public String JavaDoc getBoundedType(ExpressionInfo info) {
41     // fast check if it seems to be a bounded type
42
if (m_identifier.indexOf(".") < 0) {
43       String JavaDoc boundedType = info.getArgumentType(m_identifier);
44       if (boundedType != null) {
45         return boundedType;
46       }
47     }
48     return m_identifier;
49   }
50 }
51
Popular Tags