@Override public boolean hasTypeParameters() { return ensureDelegateType().hasTypeParameters(); }
protected MutableTypeMirror getTypeParameter(MutableDeclaredType type) { if (!type.hasTypeParameters()) { return null; } MutableTypeVariable mutableTypeVariable = type.getTypeVariables().get(0); if (mutableTypeVariable.getUpperBounds() != null && mutableTypeVariable.getUpperBounds().size() > 0) { return mutableTypeVariable.getUpperBounds().iterator().next(); } if (mutableTypeVariable.getLowerBounds() != null && mutableTypeVariable.getLowerBounds().size() > 0) { return mutableTypeVariable.getLowerBounds().iterator().next(); } return null; }
protected boolean isCastRequired(MutableTypeMirror type) { if (type.getKind().equals(MutableTypeKind.CLASS) || type.getKind().equals(MutableTypeKind.INTERFACE)) { return ((MutableDeclaredType)type).hasTypeParameters() && ((MutableDeclaredType)type).getTypeVariables().size() == 1; } return false; }
protected MutableDeclaredType getDataObject(MutableDeclaredType type) { if (type.asType() != null) { if (new DomainInterfaceAccessor(((DeclaredType)type.asType()).asElement(), processingEnv).isValid()) { return new DomainDataInterfaceType((MutableDeclaredType)type, processingEnv); } } if (type.hasTypeParameters()) { List<? extends MutableTypeVariable> typeVariables = type.getTypeVariables(); MutableTypeVariable[] dataTypeVariables = new MutableTypeVariable[typeVariables.size()]; int i = 0; for (MutableTypeVariable typeVariable: typeVariables) { dataTypeVariables[i++] = getDataObject(typeVariable); } type.setTypeVariables(dataTypeVariables); } return type; }
} else if (domainDeclared.hasTypeParameters() && dataType.hasTypeParameters()) {
DomainDeclaredType replacementType = delegateConfigurationTypeElement.getDomain(); if ((domainNamedType instanceof MutableDeclaredType) && ((MutableDeclaredType)domainNamedType).hasTypeParameters() && replacementType.hasTypeParameters()) { domainNamedType = replacementType.clone().setTypeVariables(((MutableDeclaredType)domainNamedType).getTypeVariables().toArray(new MutableTypeVariable[] {})); } else { if ((domainNamedType instanceof MutableDeclaredType) && ((MutableDeclaredType)domainNamedType).hasTypeParameters()) {
dto = processingEnv.getTransferObjectUtils().getDomainType(parameter.asType()).getDto(); if (((MutableDeclaredType)parameter.asType()).hasTypeParameters()) { ((DtoDeclaredType)dto).setTypeVariables(((MutableDeclaredType)parameter.asType()).getTypeVariables().toArray(new MutableTypeVariable[] {}));
((MutableDeclaredType)printableType).hasTypeParameters() && ((MutableDeclaredType)printableType).getTypeVariables().size() == 1 && !printableType.toString(ClassSerializer.CANONICAL, true).equals(setterType.toString(ClassSerializer.CANONICAL, true));