本文整理汇总了Java中com.fasterxml.jackson.databind.util.TokenBuffer.writeFieldName方法的典型用法代码示例。如果您正苦于以下问题:Java TokenBuffer.writeFieldName方法的具体用法?Java TokenBuffer.writeFieldName怎么用?Java TokenBuffer.writeFieldName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.fasterxml.jackson.databind.util.TokenBuffer
的用法示例。
在下文中一共展示了TokenBuffer.writeFieldName方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: _deserialize
import com.fasterxml.jackson.databind.util.TokenBuffer; //导入方法依赖的package包/类
private final Object _deserialize(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
{
boolean bool = paramJsonParser.isExpectedStartArrayToken();
String str = _locateTypeId(paramJsonParser, paramDeserializationContext);
JsonDeserializer localJsonDeserializer = _findDeserializer(paramDeserializationContext, str);
if ((this._typeIdVisible) && (paramJsonParser.getCurrentToken() == JsonToken.START_OBJECT))
{
TokenBuffer localTokenBuffer = new TokenBuffer(null);
localTokenBuffer.writeStartObject();
localTokenBuffer.writeFieldName(this._typePropertyName);
localTokenBuffer.writeString(str);
JsonParserSequence localJsonParserSequence = JsonParserSequence.createFlattened(localTokenBuffer.asParser(paramJsonParser), paramJsonParser);
paramJsonParser = localJsonParserSequence;
localJsonParserSequence.nextToken();
}
Object localObject = localJsonDeserializer.deserialize(paramJsonParser, paramDeserializationContext);
if ((bool) && (paramJsonParser.nextToken() != JsonToken.END_ARRAY))
throw paramDeserializationContext.wrongTokenException(paramJsonParser, JsonToken.END_ARRAY, "expected closing END_ARRAY after type information and deserialized value");
return localObject;
}
示例2: _deserialize
import com.fasterxml.jackson.databind.util.TokenBuffer; //导入方法依赖的package包/类
private final Object _deserialize(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
{
if (paramJsonParser.getCurrentToken() != JsonToken.START_OBJECT)
throw paramDeserializationContext.wrongTokenException(paramJsonParser, JsonToken.START_OBJECT, "need JSON Object to contain As.WRAPPER_OBJECT type information for class " + baseTypeName());
if (paramJsonParser.nextToken() != JsonToken.FIELD_NAME)
throw paramDeserializationContext.wrongTokenException(paramJsonParser, JsonToken.FIELD_NAME, "need JSON String that contains type id (for subtype of " + baseTypeName() + ")");
String str = paramJsonParser.getText();
JsonDeserializer localJsonDeserializer = _findDeserializer(paramDeserializationContext, str);
paramJsonParser.nextToken();
if ((this._typeIdVisible) && (paramJsonParser.getCurrentToken() == JsonToken.START_OBJECT))
{
TokenBuffer localTokenBuffer = new TokenBuffer(null);
localTokenBuffer.writeStartObject();
localTokenBuffer.writeFieldName(this._typePropertyName);
localTokenBuffer.writeString(str);
JsonParserSequence localJsonParserSequence = JsonParserSequence.createFlattened(localTokenBuffer.asParser(paramJsonParser), paramJsonParser);
paramJsonParser = localJsonParserSequence;
localJsonParserSequence.nextToken();
}
Object localObject = localJsonDeserializer.deserialize(paramJsonParser, paramDeserializationContext);
if (paramJsonParser.nextToken() != JsonToken.END_OBJECT)
throw paramDeserializationContext.wrongTokenException(paramJsonParser, JsonToken.END_OBJECT, "expected closing END_OBJECT after type information and deserialized value");
return localObject;
}
示例3: _deserialize
import com.fasterxml.jackson.databind.util.TokenBuffer; //导入方法依赖的package包/类
/**
* Method that handles type information wrapper, locates actual
* subtype deserializer to use, and calls it to do actual
* deserialization.
*/
private final Object _deserialize(JsonParser jp, DeserializationContext ctxt)
throws IOException, JsonProcessingException
{
boolean hadStartArray = jp.isExpectedStartArrayToken();
String typeId = _locateTypeId(jp, ctxt);
JsonDeserializer<Object> deser = _findDeserializer(ctxt, typeId);
// Minor complication: we may need to merge type id in?
if (_typeIdVisible && jp.getCurrentToken() == JsonToken.START_OBJECT) {
// but what if there's nowhere to add it in? Error? Or skip? For now, skip.
TokenBuffer tb = new TokenBuffer(null);
tb.writeStartObject(); // recreate START_OBJECT
tb.writeFieldName(_typePropertyName);
tb.writeString(typeId);
jp = JsonParserSequence.createFlattened(tb.asParser(jp), jp);
jp.nextToken();
}
Object value = deser.deserialize(jp, ctxt);
// And then need the closing END_ARRAY
if (hadStartArray && jp.nextToken() != JsonToken.END_ARRAY) {
throw ctxt.wrongTokenException(jp, JsonToken.END_ARRAY,
"expected closing END_ARRAY after type information and deserialized value");
}
return value;
}
示例4: _deserialize
import com.fasterxml.jackson.databind.util.TokenBuffer; //导入方法依赖的package包/类
/**
* Method that handles type information wrapper, locates actual
* subtype deserializer to use, and calls it to do actual
* deserialization.
*/
private final Object _deserialize(JsonParser jp, DeserializationContext ctxt)
throws IOException, JsonProcessingException
{
// first, sanity checks
if (jp.getCurrentToken() != JsonToken.START_OBJECT) {
throw ctxt.wrongTokenException(jp, JsonToken.START_OBJECT,
"need JSON Object to contain As.WRAPPER_OBJECT type information for class "+baseTypeName());
}
// should always get field name, but just in case...
if (jp.nextToken() != JsonToken.FIELD_NAME) {
throw ctxt.wrongTokenException(jp, JsonToken.FIELD_NAME,
"need JSON String that contains type id (for subtype of "+baseTypeName()+")");
}
final String typeId = jp.getText();
JsonDeserializer<Object> deser = _findDeserializer(ctxt, typeId);
jp.nextToken();
// Minor complication: we may need to merge type id in?
if (_typeIdVisible && jp.getCurrentToken() == JsonToken.START_OBJECT) {
// but what if there's nowhere to add it in? Error? Or skip? For now, skip.
TokenBuffer tb = new TokenBuffer(null);
tb.writeStartObject(); // recreate START_OBJECT
tb.writeFieldName(_typePropertyName);
tb.writeString(typeId);
jp = JsonParserSequence.createFlattened(tb.asParser(jp), jp);
jp.nextToken();
}
Object value = deser.deserialize(jp, ctxt);
// And then need the closing END_OBJECT
if (jp.nextToken() != JsonToken.END_OBJECT) {
throw ctxt.wrongTokenException(jp, JsonToken.END_OBJECT,
"expected closing END_OBJECT after type information and deserialized value");
}
return value;
}
示例5: deserializeTypedFromObject
import com.fasterxml.jackson.databind.util.TokenBuffer; //导入方法依赖的package包/类
@Override
public Object deserializeTypedFromObject(JsonParser p, DeserializationContext ctxt) throws IOException {
JsonToken t;
t = p.getCurrentToken();
if (t == JsonToken.START_OBJECT) {
t = p.nextToken();
} else if (t != JsonToken.FIELD_NAME) {
throw new JsonMappingException(p, "Could not extract event type from non-object");
}
final TokenBuffer tb = new TokenBuffer(p, ctxt);
for (; t == JsonToken.FIELD_NAME; t = p.nextToken()) {
final String topLevelProperty = p.getCurrentName();
tb.writeFieldName(topLevelProperty);
t = p.nextToken();
if (topLevelProperty.equals("metadata")) {
if (t != JsonToken.START_OBJECT) {
throw new JsonMappingException(p, "Could not extract event type from invalid metadata");
}
tb.writeStartObject();
t = p.nextToken();
for (; t == JsonToken.FIELD_NAME; t = p.nextToken()) {
final String metadataProperty = p.getCurrentName();
tb.writeFieldName(metadataProperty);
t = p.nextToken();
if (metadataProperty.equals("event_type")) {
if (t != JsonToken.VALUE_STRING) {
throw new JsonMappingException(p, "Could not extract event type from non-string property");
}
final String typeId = p.getText();
tb.writeString(typeId);
final JsonParser pb = JsonParserSequence.createFlattened(false, tb.asParser(p), p);
return deserialize(pb, ctxt, typeId);
} else {
tb.copyCurrentStructure(p);
}
}
} else {
tb.copyCurrentStructure(p);
}
}
throw new JsonMappingException(p, "Could not find metadata property to extract event type");
}
示例6: deserializeUsingPropertyBasedWithUnwrapped
import com.fasterxml.jackson.databind.util.TokenBuffer; //导入方法依赖的package包/类
protected Object deserializeUsingPropertyBasedWithUnwrapped(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
{
PropertyBasedCreator localPropertyBasedCreator = this._propertyBasedCreator;
PropertyValueBuffer localPropertyValueBuffer = localPropertyBasedCreator.startBuilding(paramJsonParser, paramDeserializationContext, this._objectIdReader);
TokenBuffer localTokenBuffer = new TokenBuffer(paramJsonParser.getCodec());
localTokenBuffer.writeStartObject();
for (JsonToken localJsonToken1 = paramJsonParser.getCurrentToken(); localJsonToken1 == JsonToken.FIELD_NAME; localJsonToken1 = paramJsonParser.nextToken())
{
String str = paramJsonParser.getCurrentName();
paramJsonParser.nextToken();
SettableBeanProperty localSettableBeanProperty1 = localPropertyBasedCreator.findCreatorProperty(str);
if (localSettableBeanProperty1 != null)
{
Object localObject2 = localSettableBeanProperty1.deserialize(paramJsonParser, paramDeserializationContext);
if (localPropertyValueBuffer.assignParameter(localSettableBeanProperty1.getCreatorIndex(), localObject2))
{
JsonToken localJsonToken2 = paramJsonParser.nextToken();
Object localObject3;
try
{
localObject3 = localPropertyBasedCreator.build(paramDeserializationContext, localPropertyValueBuffer);
}
catch (Exception localException2)
{
wrapAndThrow(localException2, this._beanType.getRawClass(), str, paramDeserializationContext);
continue;
}
while (localJsonToken2 == JsonToken.FIELD_NAME)
{
paramJsonParser.nextToken();
localTokenBuffer.copyCurrentStructure(paramJsonParser);
localJsonToken2 = paramJsonParser.nextToken();
}
localTokenBuffer.writeEndObject();
if (localObject3.getClass() != this._beanType.getRawClass())
{
localTokenBuffer.close();
throw paramDeserializationContext.mappingException("Can not create polymorphic instances with unwrapped values");
}
return this._unwrappedPropertyHandler.processUnwrapped(paramJsonParser, paramDeserializationContext, localObject3, localTokenBuffer);
}
}
else if (!localPropertyValueBuffer.readIdProperty(str))
{
SettableBeanProperty localSettableBeanProperty2 = this._beanProperties.find(str);
if (localSettableBeanProperty2 != null)
{
localPropertyValueBuffer.bufferProperty(localSettableBeanProperty2, localSettableBeanProperty2.deserialize(paramJsonParser, paramDeserializationContext));
}
else if ((this._ignorableProps != null) && (this._ignorableProps.contains(str)))
{
paramJsonParser.skipChildren();
}
else
{
localTokenBuffer.writeFieldName(str);
localTokenBuffer.copyCurrentStructure(paramJsonParser);
if (this._anySetter != null)
localPropertyValueBuffer.bufferAnyProperty(this._anySetter, str, this._anySetter.deserialize(paramJsonParser, paramDeserializationContext));
}
}
}
Object localObject1;
try
{
localObject1 = localPropertyBasedCreator.build(paramDeserializationContext, localPropertyValueBuffer);
}
catch (Exception localException1)
{
wrapInstantiationProblem(localException1, paramDeserializationContext);
return null;
}
return this._unwrappedPropertyHandler.processUnwrapped(paramJsonParser, paramDeserializationContext, localObject1, localTokenBuffer);
}
示例7: deserializeWithUnwrapped
import com.fasterxml.jackson.databind.util.TokenBuffer; //导入方法依赖的package包/类
protected Object deserializeWithUnwrapped(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
{
if (this._delegateDeserializer != null)
return this._valueInstantiator.createUsingDelegate(paramDeserializationContext, this._delegateDeserializer.deserialize(paramJsonParser, paramDeserializationContext));
if (this._propertyBasedCreator != null)
return deserializeUsingPropertyBasedWithUnwrapped(paramJsonParser, paramDeserializationContext);
TokenBuffer localTokenBuffer = new TokenBuffer(paramJsonParser.getCodec());
localTokenBuffer.writeStartObject();
Object localObject = this._valueInstantiator.createUsingDefault(paramDeserializationContext);
if (this._injectables != null)
injectValues(paramDeserializationContext, localObject);
Class localClass;
if (this._needViewProcesing)
localClass = paramDeserializationContext.getActiveView();
else
localClass = null;
while (paramJsonParser.getCurrentToken() != JsonToken.END_OBJECT)
{
String str = paramJsonParser.getCurrentName();
paramJsonParser.nextToken();
SettableBeanProperty localSettableBeanProperty = this._beanProperties.find(str);
if (localSettableBeanProperty != null)
{
if ((localClass != null) && (!localSettableBeanProperty.visibleInView(localClass)))
paramJsonParser.skipChildren();
else
try
{
localSettableBeanProperty.deserializeAndSet(paramJsonParser, paramDeserializationContext, localObject);
}
catch (Exception localException2)
{
wrapAndThrow(localException2, localObject, str, paramDeserializationContext);
}
}
else if ((this._ignorableProps != null) && (this._ignorableProps.contains(str)))
{
paramJsonParser.skipChildren();
}
else
{
localTokenBuffer.writeFieldName(str);
localTokenBuffer.copyCurrentStructure(paramJsonParser);
if (this._anySetter != null)
try
{
this._anySetter.deserializeAndSet(paramJsonParser, paramDeserializationContext, localObject, str);
}
catch (Exception localException1)
{
wrapAndThrow(localException1, localObject, str, paramDeserializationContext);
}
}
paramJsonParser.nextToken();
}
localTokenBuffer.writeEndObject();
this._unwrappedPropertyHandler.processUnwrapped(paramJsonParser, paramDeserializationContext, localObject, localTokenBuffer);
return localObject;
}
示例8: deserializeUsingPropertyBasedWithUnwrapped
import com.fasterxml.jackson.databind.util.TokenBuffer; //导入方法依赖的package包/类
protected Object deserializeUsingPropertyBasedWithUnwrapped(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
{
PropertyBasedCreator localPropertyBasedCreator = this._propertyBasedCreator;
PropertyValueBuffer localPropertyValueBuffer = localPropertyBasedCreator.startBuilding(paramJsonParser, paramDeserializationContext, this._objectIdReader);
TokenBuffer localTokenBuffer = new TokenBuffer(paramJsonParser.getCodec());
localTokenBuffer.writeStartObject();
for (JsonToken localJsonToken1 = paramJsonParser.getCurrentToken(); localJsonToken1 == JsonToken.FIELD_NAME; localJsonToken1 = paramJsonParser.nextToken())
{
String str = paramJsonParser.getCurrentName();
paramJsonParser.nextToken();
SettableBeanProperty localSettableBeanProperty1 = localPropertyBasedCreator.findCreatorProperty(str);
if (localSettableBeanProperty1 != null)
{
Object localObject2 = localSettableBeanProperty1.deserialize(paramJsonParser, paramDeserializationContext);
if (localPropertyValueBuffer.assignParameter(localSettableBeanProperty1.getCreatorIndex(), localObject2))
{
JsonToken localJsonToken2 = paramJsonParser.nextToken();
Object localObject3;
try
{
localObject3 = localPropertyBasedCreator.build(paramDeserializationContext, localPropertyValueBuffer);
}
catch (Exception localException2)
{
wrapAndThrow(localException2, this._beanType.getRawClass(), str, paramDeserializationContext);
continue;
}
while (localJsonToken2 == JsonToken.FIELD_NAME)
{
paramJsonParser.nextToken();
localTokenBuffer.copyCurrentStructure(paramJsonParser);
localJsonToken2 = paramJsonParser.nextToken();
}
localTokenBuffer.writeEndObject();
if (localObject3.getClass() != this._beanType.getRawClass())
throw paramDeserializationContext.mappingException("Can not create polymorphic instances with unwrapped values");
return this._unwrappedPropertyHandler.processUnwrapped(paramJsonParser, paramDeserializationContext, localObject3, localTokenBuffer);
}
}
else if (!localPropertyValueBuffer.readIdProperty(str))
{
SettableBeanProperty localSettableBeanProperty2 = this._beanProperties.find(str);
if (localSettableBeanProperty2 != null)
{
localPropertyValueBuffer.bufferProperty(localSettableBeanProperty2, localSettableBeanProperty2.deserialize(paramJsonParser, paramDeserializationContext));
}
else if ((this._ignorableProps != null) && (this._ignorableProps.contains(str)))
{
paramJsonParser.skipChildren();
}
else
{
localTokenBuffer.writeFieldName(str);
localTokenBuffer.copyCurrentStructure(paramJsonParser);
if (this._anySetter != null)
localPropertyValueBuffer.bufferAnyProperty(this._anySetter, str, this._anySetter.deserialize(paramJsonParser, paramDeserializationContext));
}
}
}
Object localObject1;
try
{
localObject1 = localPropertyBasedCreator.build(paramDeserializationContext, localPropertyValueBuffer);
}
catch (Exception localException1)
{
wrapInstantiationProblem(localException1, paramDeserializationContext);
return null;
}
return this._unwrappedPropertyHandler.processUnwrapped(paramJsonParser, paramDeserializationContext, localObject1, localTokenBuffer);
}
示例9: deserializeWithUnwrapped
import com.fasterxml.jackson.databind.util.TokenBuffer; //导入方法依赖的package包/类
protected Object deserializeWithUnwrapped(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
{
if (this._delegateDeserializer != null)
return this._valueInstantiator.createUsingDelegate(paramDeserializationContext, this._delegateDeserializer.deserialize(paramJsonParser, paramDeserializationContext));
if (this._propertyBasedCreator != null)
return deserializeUsingPropertyBasedWithUnwrapped(paramJsonParser, paramDeserializationContext);
TokenBuffer localTokenBuffer = new TokenBuffer(paramJsonParser.getCodec());
localTokenBuffer.writeStartObject();
Object localObject = this._valueInstantiator.createUsingDefault(paramDeserializationContext);
if (this._injectables != null)
injectValues(paramDeserializationContext, localObject);
Class localClass;
if (this._needViewProcesing)
localClass = paramDeserializationContext.getActiveView();
else
localClass = null;
while (paramJsonParser.getCurrentToken() != JsonToken.END_OBJECT)
{
String str = paramJsonParser.getCurrentName();
paramJsonParser.nextToken();
SettableBeanProperty localSettableBeanProperty = this._beanProperties.find(str);
if (localSettableBeanProperty != null)
{
if ((localClass != null) && (!localSettableBeanProperty.visibleInView(localClass)))
paramJsonParser.skipChildren();
else
try
{
localObject = localSettableBeanProperty.deserializeSetAndReturn(paramJsonParser, paramDeserializationContext, localObject);
}
catch (Exception localException2)
{
wrapAndThrow(localException2, localObject, str, paramDeserializationContext);
}
}
else if ((this._ignorableProps != null) && (this._ignorableProps.contains(str)))
{
paramJsonParser.skipChildren();
}
else
{
localTokenBuffer.writeFieldName(str);
localTokenBuffer.copyCurrentStructure(paramJsonParser);
if (this._anySetter != null)
try
{
this._anySetter.deserializeAndSet(paramJsonParser, paramDeserializationContext, localObject, str);
}
catch (Exception localException1)
{
wrapAndThrow(localException1, localObject, str, paramDeserializationContext);
}
}
paramJsonParser.nextToken();
}
localTokenBuffer.writeEndObject();
this._unwrappedPropertyHandler.processUnwrapped(paramJsonParser, paramDeserializationContext, localObject, localTokenBuffer);
return localObject;
}
示例10: deserializeWithObjectId
import com.fasterxml.jackson.databind.util.TokenBuffer; //导入方法依赖的package包/类
protected Object deserializeWithObjectId(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
{
String str1 = this._objectIdReader.propertyName;
if (str1.equals(paramJsonParser.getCurrentName()))
return deserializeFromObject(paramJsonParser, paramDeserializationContext);
TokenBuffer localTokenBuffer1 = new TokenBuffer(paramJsonParser.getCodec());
Object localObject1 = null;
while (paramJsonParser.getCurrentToken() != JsonToken.END_OBJECT)
{
String str2 = paramJsonParser.getCurrentName();
if (localObject1 == null)
{
if (str1.equals(str2))
{
TokenBuffer localTokenBuffer2 = new TokenBuffer(paramJsonParser.getCodec());
localObject1 = localTokenBuffer2;
localTokenBuffer2.writeFieldName(str2);
paramJsonParser.nextToken();
localObject1.copyCurrentStructure(paramJsonParser);
localObject1.append(localTokenBuffer1);
localTokenBuffer1 = null;
}
else
{
localTokenBuffer1.writeFieldName(str2);
paramJsonParser.nextToken();
localTokenBuffer1.copyCurrentStructure(paramJsonParser);
}
}
else
{
localObject1.writeFieldName(str2);
paramJsonParser.nextToken();
localObject1.copyCurrentStructure(paramJsonParser);
}
paramJsonParser.nextToken();
}
Object localObject2;
if (localObject1 == null)
localObject2 = localTokenBuffer1;
else
localObject2 = localObject1;
Object localObject3 = localObject2;
((TokenBuffer)localObject2).writeEndObject();
JsonParser localJsonParser = localObject3.asParser();
localJsonParser.nextToken();
return deserializeFromObject(localJsonParser, paramDeserializationContext);
}
示例11: deserializeWithUnwrapped
import com.fasterxml.jackson.databind.util.TokenBuffer; //导入方法依赖的package包/类
protected Object deserializeWithUnwrapped(JsonParser jp, DeserializationContext ctxt, Object bean)
throws IOException, JsonProcessingException
{
JsonToken t = jp.getCurrentToken();
if (t == JsonToken.START_OBJECT) {
t = jp.nextToken();
}
TokenBuffer tokens = new TokenBuffer(jp.getCodec());
tokens.writeStartObject();
final Class<?> activeView = _needViewProcesing ? ctxt.getActiveView() : null;
for (; t == JsonToken.FIELD_NAME; t = jp.nextToken()) {
String propName = jp.getCurrentName();
SettableBeanProperty prop = _beanProperties.find(propName);
jp.nextToken();
if (prop != null) { // normal case
if (activeView != null && !prop.visibleInView(activeView)) {
jp.skipChildren();
continue;
}
try {
prop.deserializeAndSet(jp, ctxt, bean);
} catch (Exception e) {
wrapAndThrow(e, bean, propName, ctxt);
}
continue;
}
if (_ignorableProps != null && _ignorableProps.contains(propName)) {
jp.skipChildren();
continue;
}
// but... others should be passed to unwrapped property deserializers
tokens.writeFieldName(propName);
tokens.copyCurrentStructure(jp);
// how about any setter? We'll get copies but...
if (_anySetter != null) {
_anySetter.deserializeAndSet(jp, ctxt, bean, propName);
}
}
tokens.writeEndObject();
_unwrappedPropertyHandler.processUnwrapped(jp, ctxt, bean, tokens);
return bean;
}
示例12: deserializeWithUnwrapped
import com.fasterxml.jackson.databind.util.TokenBuffer; //导入方法依赖的package包/类
protected Object deserializeWithUnwrapped(JsonParser jp,
DeserializationContext ctxt, Object bean)
throws IOException, JsonProcessingException
{
JsonToken t = jp.getCurrentToken();
if (t == JsonToken.START_OBJECT) {
t = jp.nextToken();
}
TokenBuffer tokens = new TokenBuffer(jp.getCodec());
tokens.writeStartObject();
final Class<?> activeView = _needViewProcesing ? ctxt.getActiveView() : null;
for (; t == JsonToken.FIELD_NAME; t = jp.nextToken()) {
String propName = jp.getCurrentName();
SettableBeanProperty prop = _beanProperties.find(propName);
jp.nextToken();
if (prop != null) { // normal case
if (activeView != null && !prop.visibleInView(activeView)) {
jp.skipChildren();
continue;
}
try {
bean = prop.deserializeSetAndReturn(jp, ctxt, bean);
} catch (Exception e) {
wrapAndThrow(e, bean, propName, ctxt);
}
continue;
}
if (_ignorableProps != null && _ignorableProps.contains(propName)) {
jp.skipChildren();
continue;
}
// but... others should be passed to unwrapped property deserializers
tokens.writeFieldName(propName);
tokens.copyCurrentStructure(jp);
// how about any setter? We'll get copies but...
if (_anySetter != null) {
_anySetter.deserializeAndSet(jp, ctxt, bean, propName);
}
}
tokens.writeEndObject();
_unwrappedPropertyHandler.processUnwrapped(jp, ctxt, bean, tokens);
return bean;
}