KickJava   Java API By Example, From Geeks To Geeks.

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


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