1 4 5 6 7 package com.tc.aspectwerkz.expression.ast; 8 9 import com.tc.aspectwerkz.expression.ExpressionInfo; 10 11 12 public class ASTTarget extends SimpleNode { 13 14 private String m_identifier; 15 16 public ASTTarget(int id) { 17 super(id); 18 } 19 20 public ASTTarget(ExpressionParser p, int id) { 21 super(p, id); 22 } 23 24 25 28 public Object jjtAccept(ExpressionParserVisitor visitor, Object data) { 29 return visitor.visit(this, data); 30 } 31 32 public void setIdentifier(String identifier) { 33 m_identifier = identifier; 34 } 35 36 public String getIdentifier() { 37 return m_identifier; 38 } 39 40 public String getBoundedType(ExpressionInfo info) { 41 if (m_identifier.indexOf(".") < 0) { 43 String boundedType = info.getArgumentType(m_identifier); 44 if (boundedType != null) { 45 return boundedType; 46 } 47 } 48 return m_identifier; 49 } 50 } 51 | Popular Tags |