private static boolean isAppendSerialNumbersEnable(GenerationContext context) { return context.getGeneratorConfig2().isGenerateSerialNumberFields(); }
private static boolean isAppendToStringFunctionsEnable(GenerationContext context) { return context.getGeneratorConfig2().isGenerateToStringFunctions(); }
private static boolean isAppendCloneFunctionsEnable(GenerationContext context) { return context.getGeneratorConfig2().isGenerateCloneFunctions(); }
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; }
if (!isEqualsUserDefined) { final JvmOperation op = toEqualsMethod(source, target, declaredInstanceFields, context.getGeneratorConfig2().isGeneratePureAnnotation()); if (op != null) { appendGeneratedAnnotation(op, context); context.getGeneratorConfig2().isGeneratePureAnnotation()); if (op != null) { appendGeneratedAnnotation(op, context);
if (op != null) { appendGeneratedAnnotation(op, context); if (context.getGeneratorConfig2().isGeneratePureAnnotation()) { addAnnotationSafe(op, Pure.class);
operation.setVisibility(JvmVisibility.PUBLIC); addAnnotationSafe(operation, Override.class); if (context.getGeneratorConfig2().isGeneratePureAnnotation()) { addAnnotationSafe(operation, Pure.class);
&& context.getGeneratorConfig2().isGenerateInlineAnnotation() && !source.isAbstract() && !container.isInterface() && (source.isStatic() || source.isFinal() || container.isFinal()) if (context != null && context.getGeneratorConfig2().isGeneratePureAnnotation() && !hasExplicitPureAnnotation && this.typeReferences.findDeclaredType(Pure.class, source) != null) { addDynamicPureAnnotationGenerator = inheritedOperation == null;
if (context.getGeneratorConfig2().isGeneratePureAnnotation()) { addAnnotationSafe(operation, Pure.class);
if (context.getGeneratorConfig2().isGeneratePureAnnotation() && !this.services.getExpressionHelper().hasSideEffects(source.getExpression())) { addAnnotationSafe(bodyOperation, Pure.class); if (context.getGeneratorConfig2().isGeneratePureAnnotation()) { addAnnotationSafe(guardOperation, Pure.class);