KickJava   Java API By Example, From Geeks To Geeks.

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


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. ASTThis.java */
6
7 package com.tc.aspectwerkz.expression.ast;
8
9 import com.tc.aspectwerkz.expression.ExpressionInfo;
10
11 public class ASTThis extends SimpleNode {
12
13   private String JavaDoc m_identifier;
14
15   public ASTThis(int id) {
16     super(id);
17   }
18
19   public ASTThis(ExpressionParser p, int id) {
20     super(p, id);
21   }
22
23
24   /**
25    * Accept the visitor. *
26    */

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