@Override public JsonGenerator write(String name, int value) { if (currentContext.scope != Scope.IN_OBJECT) { throw new JsonGenerationException( JsonMessages.GENERATOR_ILLEGAL_METHOD(currentContext.scope)); } writeName(name); writeInt(value); return this; }
@Override public JsonGenerator write(int value) { checkContextForValue(); writeComma(); writeInt(value); popFieldContext(); return this; }
@Override public JsonGenerator write(int value) { checkContextForValue(); writeComma(); writeInt(value); popFieldContext(); return this; }
@Override public JsonGenerator write(String name, int value) { if (currentContext.scope != Scope.IN_OBJECT) { throw new JsonGenerationException( JsonMessages.GENERATOR_ILLEGAL_METHOD(currentContext.scope)); } writeName(name); writeInt(value); return this; }
@Override public JsonGenerator write(int value) { checkContextForValue(); writeComma(); writeInt(value); popFieldContext(); return this; }
@Override public JsonGenerator write(String name, int value) { if (currentContext.scope != Scope.IN_OBJECT) { throw new JsonGenerationException( JsonMessages.GENERATOR_ILLEGAL_METHOD(currentContext.scope)); } writeName(name); writeInt(value); return this; }
public JsonGenerator write(int value) { if (currentContext.scope != Scope.IN_ARRAY) { throw new JsonGenerationException( JsonMessages.GENERATOR_ILLEGAL_METHOD(currentContext.scope)); } writeComma(); writeInt(value); return this; }
@Override public JsonGenerator write(String name, int value) { if (currentContext.scope != Scope.IN_OBJECT) { throw new JsonGenerationException( JsonMessages.GENERATOR_ILLEGAL_METHOD(currentContext.scope)); } writeName(name); writeInt(value); return this; }
@Override public JsonGenerator write(String name, int value) { if (currentContext.scope != Scope.IN_OBJECT) { throw new JsonGenerationException( JsonMessages.GENERATOR_ILLEGAL_METHOD(currentContext.scope)); } writeName(name); writeInt(value); return this; }
@Override public JsonGenerator write(String name, int value) { if (currentContext.scope != Scope.IN_OBJECT) { throw new JsonGenerationException( JsonMessages.GENERATOR_ILLEGAL_METHOD(currentContext.scope)); } writeName(name); writeInt(value); return this; }
@Override public JsonGenerator write(int value) { checkContextForValue(); writeComma(); writeInt(value); popFieldContext(); return this; }
@Override public JsonGenerator write(int value) { checkContextForValue(); writeComma(); writeInt(value); popFieldContext(); return this; }
@Override public JsonGenerator write(String name, int value) { if (currentContext.scope != Scope.IN_OBJECT) { throw new JsonGenerationException( JsonMessages.GENERATOR_ILLEGAL_METHOD(currentContext.scope)); } writeName(name); writeInt(value); return this; }
@Override public JsonGenerator write(int value) { checkContextForValue(); writeComma(); writeInt(value); popFieldContext(); return this; }