KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > aspectwerkz > expression > ast > ASTTarget


1 /* Generated By:JJTree: Do not edit this line. ASTTarget.java */
2
3 package org.codehaus.aspectwerkz.expression.ast;
4
5 import org.codehaus.aspectwerkz.expression.ExpressionInfo;
6 import org.codehaus.aspectwerkz.expression.SubtypePatternType;
7 import org.codehaus.aspectwerkz.expression.regexp.TypePattern;
8
9 public class ASTTarget extends SimpleNode {
10
11   private String JavaDoc m_identifier;
12
13   public ASTTarget(int id) {
14     super(id);
15   }
16
17   public ASTTarget(ExpressionParser p, int id) {
18     super(p, id);
19   }
20
21
22   /** Accept the visitor. **/
23   public Object JavaDoc jjtAccept(ExpressionParserVisitor visitor, Object JavaDoc data) {
24     return visitor.visit(this, data);
25   }
26
27   public void setIdentifier(String JavaDoc identifier) {
28       m_identifier = identifier;
29   }
30
31     public String JavaDoc getIdentifier() {
32         return m_identifier;
33     }
34
35     public String JavaDoc getBoundedType(ExpressionInfo info) {
36         // fast check if it seems to be a bounded type
37
if (m_identifier.indexOf(".") < 0) {
38             String JavaDoc boundedType = info.getArgumentType(m_identifier);
39             if (boundedType != null) {
40                 return boundedType;
41             }
42         }
43         return m_identifier;
44     }
45 }
46
Popular Tags