protected void appendGeneratedAnnotation(JvmAnnotationTarget target, GenerationContext context, String sarlCode) {
		final GeneratorConfig config = context.getGeneratorConfig();
		if (config.isGenerateGeneratedAnnotation()) {
			addAnnotationSafe(target, Generated.class, getClass().getName());
		}

		if (target instanceof JvmFeature) {
			addAnnotationSafe(target, SyntheticMember.class);
		}

		if (!Strings.isNullOrEmpty(sarlCode)) {
			addAnnotationSafe(target, SarlSourceCode.class, sarlCode);
		}
	}
protected void appendGeneratedAnnotation ( JvmAnnotationTarget target , GenerationContext context , String sarlCode ) { final GeneratorConfig config = context . getGeneratorConfig ( ) ; if ( config . isGenerateGeneratedAnnotation ( ) ) { addAnnotationSafe ( target , Generated . class , getClass ( ) . getName ( ) ) ; } if ( target instanceof JvmFeature ) { addAnnotationSafe ( target , SyntheticMember . class ) ; } if ( ! Strings . isNullOrEmpty ( sarlCode ) ) { addAnnotationSafe ( target , SarlSourceCode . class , sarlCode ) ; } }
Add the @Generated annotation to the given target.

@param target the target of the annotation.
@param context the generation context.
@param sarlCode the code that is the cause of the generation.