01: /* Generated By:JJTree: Do not edit this line. ASTThis.java */
02:
03: package org.codehaus.aspectwerkz.expression.ast;
04:
05: import org.codehaus.aspectwerkz.expression.ExpressionInfo;
06:
07: public class ASTThis extends SimpleNode {
08:
09: 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: /** Accept the visitor. **/
20: public Object jjtAccept(ExpressionParserVisitor visitor, Object data) {
21: return visitor.visit(this , data);
22: }
23:
24: public void setIdentifier(String identifier) {
25: m_identifier = identifier;
26: }
27:
28: public String getIdentifier() {
29: return m_identifier;
30: }
31:
32: public String getBoundedType(ExpressionInfo info) {
33: // fast check if it seems to be a bounded type
34: if (m_identifier.indexOf(".") < 0) {
35: String boundedType = info.getArgumentType(m_identifier);
36: if (boundedType != null) {
37: return boundedType;
38: }
39: }
40: return m_identifier;
41: }
42:
43: }
|