01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04:
05: /* Generated By:JJTree: Do not edit this line. ASTThis.java */
06:
07: package com.tc.aspectwerkz.expression.ast;
08:
09: import com.tc.aspectwerkz.expression.ExpressionInfo;
10:
11: public class ASTThis extends SimpleNode {
12:
13: private String 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: * Accept the visitor. *
25: */
26: public Object jjtAccept(ExpressionParserVisitor visitor, Object data) {
27: return visitor.visit(this , data);
28: }
29:
30: public void setIdentifier(String identifier) {
31: m_identifier = identifier;
32: }
33:
34: public String getIdentifier() {
35: return m_identifier;
36: }
37:
38: public String getBoundedType(ExpressionInfo info) {
39: // fast check if it seems to be a bounded type
40: if (m_identifier.indexOf(".") < 0) {
41: String boundedType = info.getArgumentType(m_identifier);
42: if (boundedType != null) {
43: return boundedType;
44: }
45: }
46: return m_identifier;
47: }
48:
49: }
|