1 4 5 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 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 27 public Object jjtAccept(ExpressionParserVisitor visitor, Object data) { 28 return visitor.visit(this, data); 29 } 30 31 public void setIdentifier(String identifier) { 32 m_identifier = identifier; 33 } 34 35 public String getIdentifier() { 36 return m_identifier; 37 } 38 39 public String getBoundedType(ExpressionInfo info) { 40 if (m_identifier.indexOf(".") < 0) { 42 String boundedType = info.getArgumentType(m_identifier); 43 if (boundedType != null) { 44 return boundedType; 45 } 46 } 47 return m_identifier; 48 } 49 50 } 51 | Popular Tags |