Example #1
0
  protected String doPrintSimpleReferenceType(ASTSimpleReferenceType type) {
    if (type != null) {
      if (type.getTypeArguments().isPresent()) {
        return Names.getQualifiedName(type.getNames())
            + doPrintTypeArguments(type.getTypeArguments().get());
      } else {
        return Names.getQualifiedName(type.getNames());
      }
    }

    return "";
  }
Example #2
0
  protected String doPrintSimpleReferenceTypeWithoutTypeArguments(ASTSimpleReferenceType type) {
    if (type != null) {
      return Names.getQualifiedName(type.getNames());
    }

    return "";
  }