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