Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.jackson.module.afterburner.ser;
 
 
 public class StringMethodPropertyWriter 
    public StringMethodPropertyWriter(BeanPropertyWriter srcBeanPropertyAccessor accint index,
            JsonSerializer<Objectser) {
        super(srcaccindexser);
    }
    @Override
        return new StringMethodPropertyWriter(thisser);
    }
    
        if (acc == nullthrow new IllegalArgumentException();
        return new StringMethodPropertyWriter(thisacc);
    }
    /*
    /**********************************************************
    /* Overrides
    /**********************************************************
     */
    @Override
    public void serializeAsField(Object beanJsonGenerator jgenSerializerProvider prov)
        throws Exception
    {
        String value = .stringGetter(bean);
        // Null (etc) handling; copied from super-class impl
        if (value == null) {
            if (!) {
                jgen.writeFieldName();
                prov.defaultSerializeNull(jgen);
            }
            return;
        }
        jgen.writeFieldName();
        jgen.writeString(value);
    }
New to GrepCode? Check out our FAQ X