/** * Creates a new generic TypeParamRef. * @param letter The letter of the type. * @return The param reference. */ public static TypeParamRef newTypeParamRef(String letter) { return new TypeParamRefBuilder().withName(letter).build(); }
public TypeParamRef apply(TypeVariable item) { return new TypeParamRefBuilder().withName(item.asElement().getSimpleName().toString()).build(); } };
public TypeParamRef toReference() { return new TypeParamRefBuilder() .withName(name) .withAttributes(getAttributes()) .build(); }
public TypeParamRefBuilder(TypeParamRef instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); this.withDimensions(instance.getDimensions()); this.withAttributes(instance.getAttributes()); this.validationEnabled = validationEnabled; }
return new WildcardRefBuilder().build(); } else if (item instanceof TypeVariable) { return new TypeParamRefBuilder().withName(((TypeVariable) item).getName()).build(); } else if (item instanceof GenericArrayType) { Type target = item;
String name = referenceType.toString(); arguments.add(new TypeParamRefBuilder() .withName(name) .withDimensions(dimensions) .build()); return new TypeParamRefBuilder().withName(boundName).build(); } else if (classOrInterfaceType.getTypeArgs().isEmpty() && boundName.length() == 1) { return new TypeParamRefBuilder().withName(boundName).build(); } else { return new ClassRefBuilder()