content: /*
   * Decompiled with CFR 0.153-SNAPSHOT (d6f6758-dirty).
   */
  package com.alibaba.fastjson.support.spring;
  
  import com.alibaba.fastjson.serializer.JSONSerializable;
  import com.alibaba.fastjson.serializer.JSONSerializer;
  import com.alibaba.fastjson.serializer.SerializeWriter;
  import com.alibaba.fastjson.serializer.SerializerFeature;
  import java.io.IOException;
  import java.lang.reflect.Type;
  
  @Deprecated
  public class MappingFastJsonValue
  implements JSONSerializable {
      private static final String SECURITY_PREFIX = "/**/";
      private static final int BrowserSecureMask = SerializerFeature.BrowserSecure.mask;
      private Object value;
      private String jsonpFunction;
  
      public MappingFastJsonValue(Object value) {
          this.value = value;
      }
  
      public void setValue(Object value) {
          this.value = value;
      }
  
      public Object getValue() {
          return this.value;
      }
  
      public void setJsonpFunction(String functionName) {
          this.jsonpFunction = functionName;
      }
  
      public String getJsonpFunction() {
          return this.jsonpFunction;
      }
  
      public void write(JSONSerializer serializer, Object fieldName, Type fieldType, int features) throws IOException {
          SerializeWriter writer = serializer.out;
          if (this.jsonpFunction == null) {
              serializer.write(this.value);
              return;
          }
          if ((features & BrowserSecureMask) != 0 || writer.isEnabled(BrowserSecureMask)) {
              writer.write(SECURITY_PREFIX);
          }
          writer.write(this.jsonpFunction);
          writer.write(40);
          serializer.write(this.value);
          writer.write(41);
      }
  }
  
  