private boolean isAppendComparisonFunctionsEnable(GenerationContext context, JvmGenericType target) { if (context.getGeneratorConfig2().isGenerateEqualityTestFunctions()) { JvmGenericType current = target; final Set<String> encounteredTypes = new TreeSet<>(); do { encounteredTypes.add(current.getIdentifier()); if (this.annotationFinder.findAnnotation(current, NoEqualityTestFunctionsGeneration.class) != null) { return false; } final JvmTypeReference superType = current.getExtendedClass(); current = null; if (superType != null) { final JvmType type = superType.getType(); if (type instanceof JvmGenericType) { current = (JvmGenericType) type; if (encounteredTypes.contains(current.getIdentifier())) { current = null; } } } } while (current != null); return true; } return false; }
return; Iterable<JvmConstructor> constructors = filter(inferredType.getMembers(), JvmConstructor.class); if(inferredType.getExtendedClass() != null) { JvmType superType = inferredType.getExtendedClass().getType(); if(superType instanceof JvmGenericType) { Iterable<JvmConstructor> superConstructors = ((JvmGenericType) superType).getDeclaredConstructors();
final JvmTypeReference reference = target.getExtendedClass(); if (reference != null) { final JvmType type = reference.getType();
public void registerAllTypes(final JvmType type, final Function1<? super String, ? extends Boolean> acceptor) { if (((type == null) || type.eIsProxy())) { return; } if (((!this.isLocal(type)) && (acceptor.apply(type.getIdentifier())).booleanValue())) { boolean _matched = false; if (type instanceof JvmGenericType) { _matched=true; this.registerAllTypes(((JvmGenericType)type).getDeclaringType(), acceptor); JvmTypeReference _extendedClass = null; if (((JvmGenericType)type)!=null) { _extendedClass=((JvmGenericType)type).getExtendedClass(); } JvmType _type = null; if (_extendedClass!=null) { _type=_extendedClass.getType(); } this.registerAllTypes(_type, acceptor); final Consumer<JvmTypeReference> _function = (JvmTypeReference it) -> { JvmType _type_1 = null; if (it!=null) { _type_1=it.getType(); } this.registerAllTypes(_type_1, acceptor); }; ((JvmGenericType)type).getExtendedInterfaces().forEach(_function); } } }