View Javadoc

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 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 jjtAccept(ExpressionParserVisitor visitor, Object data) {
22      return visitor.visit(this, data);
23    }
24  
25      public void setIdentifier(String identifier) {
26          m_identifier = identifier;
27      }
28  
29      public String getIdentifier() {
30          return m_identifier;
31      }
32  
33      public String getBoundedType(ExpressionInfo info) {
34          // fast check if it seems to be a bounded type
35          if (m_identifier.indexOf(".") < 0) {
36              String boundedType = info.getArgumentType(m_identifier);
37              if (boundedType != null) {
38                  return boundedType;
39              }
40          }
41          return m_identifier;
42      }
43  
44  }