1 22 package org.aspectj.tools.ajdoc; 23 24 import org.aspectj.compiler.base.ast.FormalDec; 25 26 import com.sun.javadoc.Type; 27 28 public class ParameterImpl implements org.aspectj.ajdoc.Parameter { 29 30 private final FormalDec formalDec; 31 32 public ParameterImpl(FormalDec formalDec) { 33 this.formalDec = formalDec; 34 } 35 36 41 public String name() { 42 return formalDec.getId(); 43 } 44 45 50 public Type type() { 51 return TypeImpl.getInstance(formalDec.getType()); 52 } 53 54 61 public String typeName() { 62 return type().qualifiedTypeName() + type().dimension(); 63 } 64 65 public boolean equals(Object o) { 66 if (!(o instanceof ParameterImpl)) return false; 67 ParameterImpl p = (ParameterImpl)o; 68 return typeName().equals(p.typeName()); 69 } 70 } 71 | Popular Tags |