public String getDisplayName() { String constructorName = type.getDisplayInnerTypeName(); boolean isInnerClass = (constructorName != null); if (constructorName == null) constructorName = type.getDisplayTypeName(); StringBuffer sb = new StringBuffer(); writeMethodSignature(sb, access, access, isInnerClass, constructorName, name, descriptor); return sb.toString(); }
protected String createParamDescriptors( JavaParser.FormalParameterListContext formalParameterList) { StringBuffer paramDescriptors = null; if (formalParameterList != null) { List<JavaParser.FormalParameterContext> formalParameters = formalParameterList.formalParameter(); paramDescriptors = new StringBuffer("("); for (JavaParser.FormalParameterContext formalParameter : formalParameters) { int dimensionOnParameter = countDimension(formalParameter.variableDeclaratorId().children); paramDescriptors.append(createDescriptor(formalParameter.type(), dimensionOnParameter)); } } return (paramDescriptors == null) ? "()" : paramDescriptors.append(')').toString(); }
public String getDisplayName() { StringBuffer sb = new StringBuffer(); sb.append(name).append(" : "); writeSignature(sb, descriptor, descriptor.length(), 0, false); return sb.toString(); }