Java 类org.codehaus.jackson.annotate.JsonAutoDetect.Visibility 实例源码

项目:12306-android-Decompile    文件:BeanDeserializerFactory.java   
protected CreatorContainer findDeserializerCreators(DeserializationConfig paramDeserializationConfig, BasicBeanDescription paramBasicBeanDescription)
  throws JsonMappingException
{
  boolean bool = paramDeserializationConfig.isEnabled(DeserializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS);
  CreatorContainer localCreatorContainer = new CreatorContainer(paramBasicBeanDescription, bool);
  AnnotationIntrospector localAnnotationIntrospector = paramDeserializationConfig.getAnnotationIntrospector();
  if (paramBasicBeanDescription.getType().isConcrete())
  {
    Constructor localConstructor = paramBasicBeanDescription.findDefaultConstructor();
    if (localConstructor != null)
    {
      if (bool)
        ClassUtil.checkAndFixAccess(localConstructor);
      localCreatorContainer.setDefaultConstructor(localConstructor);
    }
  }
  VisibilityChecker localVisibilityChecker1 = paramDeserializationConfig.getDefaultVisibilityChecker();
  if (!paramDeserializationConfig.isEnabled(DeserializationConfig.Feature.AUTO_DETECT_CREATORS))
    localVisibilityChecker1 = localVisibilityChecker1.withCreatorVisibility(JsonAutoDetect.Visibility.NONE);
  VisibilityChecker localVisibilityChecker2 = paramDeserializationConfig.getAnnotationIntrospector().findAutoDetectVisibility(paramBasicBeanDescription.getClassInfo(), localVisibilityChecker1);
  _addDeserializerConstructors(paramDeserializationConfig, paramBasicBeanDescription, localVisibilityChecker2, localAnnotationIntrospector, localCreatorContainer);
  _addDeserializerFactoryMethods(paramDeserializationConfig, paramBasicBeanDescription, localVisibilityChecker2, localAnnotationIntrospector, localCreatorContainer);
  return localCreatorContainer;
}
项目:RHome    文件:VisibilityChecker.java   
public Std with(JsonAutoDetect ann)
{
    if (ann == null) return this;
    Std curr = this;

    JsonMethod[] incl = ann.value();
    Visibility v;

    v = hasMethod(incl, JsonMethod.GETTER) ? ann.getterVisibility() : Visibility.NONE;
    curr = curr.withGetterVisibility(v);
    v = hasMethod(incl, JsonMethod.IS_GETTER) ? ann.isGetterVisibility() : Visibility.NONE;
    curr = curr.withIsGetterVisibility(v);
    v = hasMethod(incl, JsonMethod.SETTER) ? ann.setterVisibility() : Visibility.NONE;
           curr  = curr.withSetterVisibility(v);
           v = hasMethod(incl, JsonMethod.CREATOR) ? ann.creatorVisibility() : Visibility.NONE;
           curr = curr.withCreatorVisibility(v);
           v = hasMethod(incl, JsonMethod.FIELD) ? ann.fieldVisibility() : Visibility.NONE;
           curr = curr.withFieldVisibility(v);
    return curr;
}
项目:12306-android-Decompile    文件:BeanDeserializerFactory.java   
protected CreatorContainer findDeserializerCreators(DeserializationConfig paramDeserializationConfig, BasicBeanDescription paramBasicBeanDescription)
  throws JsonMappingException
{
  boolean bool = paramDeserializationConfig.isEnabled(DeserializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS);
  CreatorContainer localCreatorContainer = new CreatorContainer(paramBasicBeanDescription, bool);
  AnnotationIntrospector localAnnotationIntrospector = paramDeserializationConfig.getAnnotationIntrospector();
  if (paramBasicBeanDescription.getType().isConcrete())
  {
    Constructor localConstructor = paramBasicBeanDescription.findDefaultConstructor();
    if (localConstructor != null)
    {
      if (bool)
        ClassUtil.checkAndFixAccess(localConstructor);
      localCreatorContainer.setDefaultConstructor(localConstructor);
    }
  }
  VisibilityChecker localVisibilityChecker1 = paramDeserializationConfig.getDefaultVisibilityChecker();
  if (!paramDeserializationConfig.isEnabled(DeserializationConfig.Feature.AUTO_DETECT_CREATORS))
    localVisibilityChecker1 = localVisibilityChecker1.withCreatorVisibility(JsonAutoDetect.Visibility.NONE);
  VisibilityChecker localVisibilityChecker2 = paramDeserializationConfig.getAnnotationIntrospector().findAutoDetectVisibility(paramBasicBeanDescription.getClassInfo(), localVisibilityChecker1);
  _addDeserializerConstructors(paramDeserializationConfig, paramBasicBeanDescription, localVisibilityChecker2, localAnnotationIntrospector, localCreatorContainer);
  _addDeserializerFactoryMethods(paramDeserializationConfig, paramBasicBeanDescription, localVisibilityChecker2, localAnnotationIntrospector, localCreatorContainer);
  return localCreatorContainer;
}
项目:community-edition-old    文件:CustomAnnotationIntrospector.java   
@Override
public VisibilityChecker<?> findAutoDetectVisibility(AnnotatedClass ac, VisibilityChecker<?> checker)
{

    return checker.withFieldVisibility(Visibility.NONE)
    .withSetterVisibility(Visibility.PUBLIC_ONLY)
    .withGetterVisibility(Visibility.PUBLIC_ONLY)
    .withIsGetterVisibility(Visibility.PUBLIC_ONLY)
    ;

}
项目:12306-android-Decompile    文件:VisibilityChecker.java   
public Std(JsonAutoDetect.Visibility paramVisibility1, JsonAutoDetect.Visibility paramVisibility2, JsonAutoDetect.Visibility paramVisibility3, JsonAutoDetect.Visibility paramVisibility4, JsonAutoDetect.Visibility paramVisibility5)
{
  this._getterMinLevel = paramVisibility1;
  this._isGetterMinLevel = paramVisibility2;
  this._setterMinLevel = paramVisibility3;
  this._creatorMinLevel = paramVisibility4;
  this._fieldMinLevel = paramVisibility5;
}
项目:12306-android-Decompile    文件:VisibilityChecker.java   
public Std withCreatorVisibility(JsonAutoDetect.Visibility paramVisibility)
{
  if (paramVisibility == JsonAutoDetect.Visibility.DEFAULT)
    paramVisibility = DEFAULT._creatorMinLevel;
  if (this._creatorMinLevel == paramVisibility)
    return this;
  JsonAutoDetect.Visibility localVisibility1 = this._getterMinLevel;
  JsonAutoDetect.Visibility localVisibility2 = this._isGetterMinLevel;
  JsonAutoDetect.Visibility localVisibility3 = this._setterMinLevel;
  JsonAutoDetect.Visibility localVisibility4 = this._fieldMinLevel;
  return new Std(localVisibility1, localVisibility2, localVisibility3, paramVisibility, localVisibility4);
}
项目:12306-android-Decompile    文件:VisibilityChecker.java   
public Std withFieldVisibility(JsonAutoDetect.Visibility paramVisibility)
{
  if (paramVisibility == JsonAutoDetect.Visibility.DEFAULT)
    paramVisibility = DEFAULT._fieldMinLevel;
  if (this._fieldMinLevel == paramVisibility)
    return this;
  return new Std(this._getterMinLevel, this._isGetterMinLevel, this._setterMinLevel, this._creatorMinLevel, paramVisibility);
}
项目:12306-android-Decompile    文件:VisibilityChecker.java   
public Std withGetterVisibility(JsonAutoDetect.Visibility paramVisibility)
{
  if (paramVisibility == JsonAutoDetect.Visibility.DEFAULT)
    paramVisibility = DEFAULT._getterMinLevel;
  if (this._getterMinLevel == paramVisibility)
    return this;
  JsonAutoDetect.Visibility localVisibility1 = this._isGetterMinLevel;
  JsonAutoDetect.Visibility localVisibility2 = this._setterMinLevel;
  JsonAutoDetect.Visibility localVisibility3 = this._creatorMinLevel;
  JsonAutoDetect.Visibility localVisibility4 = this._fieldMinLevel;
  return new Std(paramVisibility, localVisibility1, localVisibility2, localVisibility3, localVisibility4);
}
项目:12306-android-Decompile    文件:VisibilityChecker.java   
public Std withIsGetterVisibility(JsonAutoDetect.Visibility paramVisibility)
{
  if (paramVisibility == JsonAutoDetect.Visibility.DEFAULT)
    paramVisibility = DEFAULT._isGetterMinLevel;
  if (this._isGetterMinLevel == paramVisibility)
    return this;
  JsonAutoDetect.Visibility localVisibility1 = this._getterMinLevel;
  JsonAutoDetect.Visibility localVisibility2 = this._setterMinLevel;
  JsonAutoDetect.Visibility localVisibility3 = this._creatorMinLevel;
  JsonAutoDetect.Visibility localVisibility4 = this._fieldMinLevel;
  return new Std(localVisibility1, paramVisibility, localVisibility2, localVisibility3, localVisibility4);
}
项目:12306-android-Decompile    文件:VisibilityChecker.java   
public Std withSetterVisibility(JsonAutoDetect.Visibility paramVisibility)
{
  if (paramVisibility == JsonAutoDetect.Visibility.DEFAULT)
    paramVisibility = DEFAULT._setterMinLevel;
  if (this._setterMinLevel == paramVisibility)
    return this;
  JsonAutoDetect.Visibility localVisibility1 = this._getterMinLevel;
  JsonAutoDetect.Visibility localVisibility2 = this._isGetterMinLevel;
  JsonAutoDetect.Visibility localVisibility3 = this._creatorMinLevel;
  JsonAutoDetect.Visibility localVisibility4 = this._fieldMinLevel;
  return new Std(localVisibility1, localVisibility2, paramVisibility, localVisibility3, localVisibility4);
}
项目:RHome    文件:VisibilityChecker.java   
/**
        * Constructor used for building instance that has minumum visibility
        * levels as indicated by given annotation instance
        * 
        * @param ann Annotations to use for determining minimum visibility levels
        */
public Std(JsonAutoDetect ann)
{
    JsonMethod[] incl = ann.value();
    // let's combine checks for enabled/disabled, with minimimum level checks:
    _getterMinLevel = hasMethod(incl, JsonMethod.GETTER) ? ann.getterVisibility() : Visibility.NONE;
           _isGetterMinLevel = hasMethod(incl, JsonMethod.IS_GETTER) ? ann.isGetterVisibility() : Visibility.NONE;
           _setterMinLevel = hasMethod(incl, JsonMethod.SETTER) ? ann.setterVisibility() : Visibility.NONE;
           _creatorMinLevel = hasMethod(incl, JsonMethod.CREATOR) ? ann.creatorVisibility() : Visibility.NONE;
           _fieldMinLevel = hasMethod(incl, JsonMethod.FIELD) ? ann.fieldVisibility() : Visibility.NONE;
}
项目:RHome    文件:VisibilityChecker.java   
/**
 * Constructor that allows directly specifying minimum visibility levels to use
 */
public Std(Visibility getter, Visibility isGetter, Visibility setter, Visibility creator, Visibility field)
       {
    _getterMinLevel = getter;
    _isGetterMinLevel = isGetter;
    _setterMinLevel = setter;
    _creatorMinLevel = creator;
    _fieldMinLevel = field;
       }
项目:RHome    文件:BeanDeserializerFactory.java   
/**
 * Method that is to find all creators (constructors, factory methods)
 * for the bean type to deserialize.
 */
protected void addDeserializerCreators(DeserializationConfig config,
                                       BasicBeanDescription beanDesc,
                                       BeanDeserializer deser)
    throws JsonMappingException
{
    AnnotationIntrospector intr = config.getAnnotationIntrospector();
    boolean fixAccess = config.isEnabled(DeserializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS);

    // First, let's figure out constructor/factor- based instantation
    // 23-Jan-2010, tatus: but only for concrete types
    if (beanDesc.getType().isConcrete()) {
        Constructor<?> defaultCtor = beanDesc.findDefaultConstructor();
        if (defaultCtor != null) {
            if (fixAccess) {
                ClassUtil.checkAndFixAccess(defaultCtor);
            }

            deser.setDefaultConstructor(defaultCtor);
        }
    }

    // need to construct suitable visibility checker:
    VisibilityChecker<?> vchecker = config.getDefaultVisibilityChecker();
    if (!config.isEnabled(DeserializationConfig.Feature.AUTO_DETECT_CREATORS)) {
        vchecker = vchecker.withCreatorVisibility(Visibility.NONE);
    }
    vchecker = config.getAnnotationIntrospector().findAutoDetectVisibility(beanDesc.getClassInfo(), vchecker);

    CreatorContainer creators =  new CreatorContainer(beanDesc.getBeanClass(), fixAccess);
    _addDeserializerConstructors(config, beanDesc, vchecker, deser, intr, creators);
    _addDeserializerFactoryMethods(config, beanDesc, vchecker, deser, intr, creators);
    deser.setCreators(creators);
}
项目:spezi-gdx    文件:ObjectMapperFactory.java   
public static ObjectMapper create() {
    final ObjectMapper mapper = new ObjectMapper();
    mapper.configure(Feature.FAIL_ON_UNKNOWN_PROPERTIES, false);

    mapper.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL);
    mapper.enableDefaultTyping();

    mapper.setVisibilityChecker(VisibilityChecker.Std.defaultInstance()
            .withFieldVisibility(Visibility.ANY)
            .withGetterVisibility(Visibility.NONE));

    return mapper;
}
项目:12306-android-Decompile    文件:VisibilityChecker.java   
public Std(JsonAutoDetect.Visibility paramVisibility1, JsonAutoDetect.Visibility paramVisibility2, JsonAutoDetect.Visibility paramVisibility3, JsonAutoDetect.Visibility paramVisibility4, JsonAutoDetect.Visibility paramVisibility5)
{
  this._getterMinLevel = paramVisibility1;
  this._isGetterMinLevel = paramVisibility2;
  this._setterMinLevel = paramVisibility3;
  this._creatorMinLevel = paramVisibility4;
  this._fieldMinLevel = paramVisibility5;
}
项目:12306-android-Decompile    文件:VisibilityChecker.java   
public Std withCreatorVisibility(JsonAutoDetect.Visibility paramVisibility)
{
  if (paramVisibility == JsonAutoDetect.Visibility.DEFAULT)
    paramVisibility = DEFAULT._creatorMinLevel;
  if (this._creatorMinLevel == paramVisibility)
    return this;
  JsonAutoDetect.Visibility localVisibility1 = this._getterMinLevel;
  JsonAutoDetect.Visibility localVisibility2 = this._isGetterMinLevel;
  JsonAutoDetect.Visibility localVisibility3 = this._setterMinLevel;
  JsonAutoDetect.Visibility localVisibility4 = this._fieldMinLevel;
  return new Std(localVisibility1, localVisibility2, localVisibility3, paramVisibility, localVisibility4);
}
项目:12306-android-Decompile    文件:VisibilityChecker.java   
public Std withFieldVisibility(JsonAutoDetect.Visibility paramVisibility)
{
  if (paramVisibility == JsonAutoDetect.Visibility.DEFAULT)
    paramVisibility = DEFAULT._fieldMinLevel;
  if (this._fieldMinLevel == paramVisibility)
    return this;
  return new Std(this._getterMinLevel, this._isGetterMinLevel, this._setterMinLevel, this._creatorMinLevel, paramVisibility);
}
项目:12306-android-Decompile    文件:VisibilityChecker.java   
public Std withGetterVisibility(JsonAutoDetect.Visibility paramVisibility)
{
  if (paramVisibility == JsonAutoDetect.Visibility.DEFAULT)
    paramVisibility = DEFAULT._getterMinLevel;
  if (this._getterMinLevel == paramVisibility)
    return this;
  JsonAutoDetect.Visibility localVisibility1 = this._isGetterMinLevel;
  JsonAutoDetect.Visibility localVisibility2 = this._setterMinLevel;
  JsonAutoDetect.Visibility localVisibility3 = this._creatorMinLevel;
  JsonAutoDetect.Visibility localVisibility4 = this._fieldMinLevel;
  return new Std(paramVisibility, localVisibility1, localVisibility2, localVisibility3, localVisibility4);
}
项目:12306-android-Decompile    文件:VisibilityChecker.java   
public Std withIsGetterVisibility(JsonAutoDetect.Visibility paramVisibility)
{
  if (paramVisibility == JsonAutoDetect.Visibility.DEFAULT)
    paramVisibility = DEFAULT._isGetterMinLevel;
  if (this._isGetterMinLevel == paramVisibility)
    return this;
  JsonAutoDetect.Visibility localVisibility1 = this._getterMinLevel;
  JsonAutoDetect.Visibility localVisibility2 = this._setterMinLevel;
  JsonAutoDetect.Visibility localVisibility3 = this._creatorMinLevel;
  JsonAutoDetect.Visibility localVisibility4 = this._fieldMinLevel;
  return new Std(localVisibility1, paramVisibility, localVisibility2, localVisibility3, localVisibility4);
}
项目:12306-android-Decompile    文件:VisibilityChecker.java   
public Std withSetterVisibility(JsonAutoDetect.Visibility paramVisibility)
{
  if (paramVisibility == JsonAutoDetect.Visibility.DEFAULT)
    paramVisibility = DEFAULT._setterMinLevel;
  if (this._setterMinLevel == paramVisibility)
    return this;
  JsonAutoDetect.Visibility localVisibility1 = this._getterMinLevel;
  JsonAutoDetect.Visibility localVisibility2 = this._isGetterMinLevel;
  JsonAutoDetect.Visibility localVisibility3 = this._creatorMinLevel;
  JsonAutoDetect.Visibility localVisibility4 = this._fieldMinLevel;
  return new Std(localVisibility1, localVisibility2, paramVisibility, localVisibility3, localVisibility4);
}
项目:Scoopit-Java    文件:ScoopClient.java   
public ScoopClient(String apiKey, String apiSecret) {
    client = new ServiceBuilder().provider(ScoopApi.class).apiKey(apiKey)
            .apiSecret(apiSecret).build();
    mapper = new ObjectMapper();
    mapper.setVisibility(JsonMethod.FIELD, Visibility.ANY);
    mapper.configure(
            DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false);
    mapper.configure(JsonParser.Feature.ALLOW_SINGLE_QUOTES, true);
}
项目:ingress-indonesia-dev    文件:SerializationConfig.java   
public VisibilityChecker<?> getDefaultVisibilityChecker()
{
  VisibilityChecker localVisibilityChecker = super.getDefaultVisibilityChecker();
  if (!isEnabled(SerializationConfig.Feature.AUTO_DETECT_GETTERS))
    localVisibilityChecker = localVisibilityChecker.withGetterVisibility(JsonAutoDetect.Visibility.NONE);
  if (!isEnabled(SerializationConfig.Feature.AUTO_DETECT_IS_GETTERS))
    localVisibilityChecker = localVisibilityChecker.withIsGetterVisibility(JsonAutoDetect.Visibility.NONE);
  if (!isEnabled(SerializationConfig.Feature.AUTO_DETECT_FIELDS))
    localVisibilityChecker = localVisibilityChecker.withFieldVisibility(JsonAutoDetect.Visibility.NONE);
  return localVisibilityChecker;
}
项目:ingress-indonesia-dev    文件:VisibilityChecker$Std.java   
public VisibilityChecker$Std(JsonAutoDetect.Visibility paramVisibility1, JsonAutoDetect.Visibility paramVisibility2, JsonAutoDetect.Visibility paramVisibility3, JsonAutoDetect.Visibility paramVisibility4, JsonAutoDetect.Visibility paramVisibility5)
{
  this._getterMinLevel = paramVisibility1;
  this._isGetterMinLevel = paramVisibility2;
  this._setterMinLevel = paramVisibility3;
  this._creatorMinLevel = paramVisibility4;
  this._fieldMinLevel = paramVisibility5;
}
项目:ingress-indonesia-dev    文件:VisibilityChecker$Std.java   
public Std withCreatorVisibility(JsonAutoDetect.Visibility paramVisibility)
{
  if (paramVisibility == JsonAutoDetect.Visibility.DEFAULT);
  for (JsonAutoDetect.Visibility localVisibility = DEFAULT._creatorMinLevel; ; localVisibility = paramVisibility)
  {
    if (this._creatorMinLevel == localVisibility)
      return this;
    return new Std(this._getterMinLevel, this._isGetterMinLevel, this._setterMinLevel, localVisibility, this._fieldMinLevel);
  }
}
项目:ingress-indonesia-dev    文件:VisibilityChecker$Std.java   
public Std withFieldVisibility(JsonAutoDetect.Visibility paramVisibility)
{
  if (paramVisibility == JsonAutoDetect.Visibility.DEFAULT);
  for (JsonAutoDetect.Visibility localVisibility = DEFAULT._fieldMinLevel; ; localVisibility = paramVisibility)
  {
    if (this._fieldMinLevel == localVisibility)
      return this;
    return new Std(this._getterMinLevel, this._isGetterMinLevel, this._setterMinLevel, this._creatorMinLevel, localVisibility);
  }
}
项目:ingress-indonesia-dev    文件:VisibilityChecker$Std.java   
public Std withGetterVisibility(JsonAutoDetect.Visibility paramVisibility)
{
  if (paramVisibility == JsonAutoDetect.Visibility.DEFAULT);
  for (JsonAutoDetect.Visibility localVisibility = DEFAULT._getterMinLevel; ; localVisibility = paramVisibility)
  {
    if (this._getterMinLevel == localVisibility)
      return this;
    return new Std(localVisibility, this._isGetterMinLevel, this._setterMinLevel, this._creatorMinLevel, this._fieldMinLevel);
  }
}
项目:ingress-indonesia-dev    文件:VisibilityChecker$Std.java   
public Std withIsGetterVisibility(JsonAutoDetect.Visibility paramVisibility)
{
  if (paramVisibility == JsonAutoDetect.Visibility.DEFAULT);
  for (JsonAutoDetect.Visibility localVisibility = DEFAULT._isGetterMinLevel; ; localVisibility = paramVisibility)
  {
    if (this._isGetterMinLevel == localVisibility)
      return this;
    return new Std(this._getterMinLevel, localVisibility, this._setterMinLevel, this._creatorMinLevel, this._fieldMinLevel);
  }
}
项目:ingress-indonesia-dev    文件:VisibilityChecker$Std.java   
public Std withSetterVisibility(JsonAutoDetect.Visibility paramVisibility)
{
  if (paramVisibility == JsonAutoDetect.Visibility.DEFAULT);
  for (JsonAutoDetect.Visibility localVisibility = DEFAULT._setterMinLevel; ; localVisibility = paramVisibility)
  {
    if (this._setterMinLevel == localVisibility)
      return this;
    return new Std(this._getterMinLevel, this._isGetterMinLevel, localVisibility, this._creatorMinLevel, this._fieldMinLevel);
  }
}
项目:ingress-indonesia-dev    文件:DeserializationConfig.java   
public VisibilityChecker<?> getDefaultVisibilityChecker()
{
  VisibilityChecker localVisibilityChecker = super.getDefaultVisibilityChecker();
  if (!isEnabled(DeserializationConfig.Feature.AUTO_DETECT_SETTERS))
    localVisibilityChecker = localVisibilityChecker.withSetterVisibility(JsonAutoDetect.Visibility.NONE);
  if (!isEnabled(DeserializationConfig.Feature.AUTO_DETECT_CREATORS))
    localVisibilityChecker = localVisibilityChecker.withCreatorVisibility(JsonAutoDetect.Visibility.NONE);
  if (!isEnabled(DeserializationConfig.Feature.AUTO_DETECT_FIELDS))
    localVisibilityChecker = localVisibilityChecker.withFieldVisibility(JsonAutoDetect.Visibility.NONE);
  return localVisibilityChecker;
}
项目:apex-core    文件:ObjectMapperFactory.java   
@Override
public VC with(Visibility v)
{
  return this;
}
项目:apex-core    文件:ObjectMapperFactory.java   
@Override
public VC withVisibility(JsonMethod method, Visibility v)
{
  return this;
}
项目:apex-core    文件:ObjectMapperFactory.java   
@Override
public VC withGetterVisibility(Visibility v)
{
  return this;
}
项目:apex-core    文件:ObjectMapperFactory.java   
@Override
public VC withIsGetterVisibility(Visibility v)
{
  return this;
}
项目:apex-core    文件:ObjectMapperFactory.java   
@Override
public VC withSetterVisibility(Visibility v)
{
  return this;
}
项目:apex-core    文件:ObjectMapperFactory.java   
@Override
public VC withCreatorVisibility(Visibility v)
{
  return this;
}
项目:apex-core    文件:ObjectMapperFactory.java   
@Override
public VC withFieldVisibility(Visibility v)
{
  return this;
}
项目:12306-android-Decompile    文件:BeanSerializerFactory.java   
protected List<BeanPropertyWriter> findBeanProperties(SerializationConfig paramSerializationConfig, BasicBeanDescription paramBasicBeanDescription)
  throws JsonMappingException
{
  VisibilityChecker localVisibilityChecker1 = paramSerializationConfig.getDefaultVisibilityChecker();
  if (!paramSerializationConfig.isEnabled(SerializationConfig.Feature.AUTO_DETECT_GETTERS))
  {
    JsonAutoDetect.Visibility localVisibility3 = JsonAutoDetect.Visibility.NONE;
    localVisibilityChecker1 = localVisibilityChecker1.withGetterVisibility(localVisibility3);
  }
  if (!paramSerializationConfig.isEnabled(SerializationConfig.Feature.AUTO_DETECT_IS_GETTERS))
  {
    JsonAutoDetect.Visibility localVisibility2 = JsonAutoDetect.Visibility.NONE;
    localVisibilityChecker1 = localVisibilityChecker1.withIsGetterVisibility(localVisibility2);
  }
  if (!paramSerializationConfig.isEnabled(SerializationConfig.Feature.AUTO_DETECT_FIELDS))
  {
    JsonAutoDetect.Visibility localVisibility1 = JsonAutoDetect.Visibility.NONE;
    localVisibilityChecker1 = localVisibilityChecker1.withFieldVisibility(localVisibility1);
  }
  AnnotationIntrospector localAnnotationIntrospector = paramSerializationConfig.getAnnotationIntrospector();
  VisibilityChecker localVisibilityChecker2 = localAnnotationIntrospector.findAutoDetectVisibility(paramBasicBeanDescription.getClassInfo(), localVisibilityChecker1);
  LinkedHashMap localLinkedHashMap1 = paramBasicBeanDescription.findGetters(localVisibilityChecker2, null);
  LinkedHashMap localLinkedHashMap2 = paramBasicBeanDescription.findSerializableFields(localVisibilityChecker2, localLinkedHashMap1.keySet());
  removeIgnorableTypes(paramSerializationConfig, paramBasicBeanDescription, localLinkedHashMap1);
  removeIgnorableTypes(paramSerializationConfig, paramBasicBeanDescription, localLinkedHashMap2);
  ArrayList localArrayList;
  if ((localLinkedHashMap1.isEmpty()) && (localLinkedHashMap2.isEmpty()))
    localArrayList = null;
  while (true)
  {
    return localArrayList;
    boolean bool = usesStaticTyping(paramSerializationConfig, paramBasicBeanDescription, null, null);
    PropertyBuilder localPropertyBuilder = constructPropertyBuilder(paramSerializationConfig, paramBasicBeanDescription);
    int i = localLinkedHashMap1.size();
    localArrayList = new ArrayList(i);
    TypeBindings localTypeBindings = paramBasicBeanDescription.bindingsForBeanType();
    Iterator localIterator1 = localLinkedHashMap2.entrySet().iterator();
    while (localIterator1.hasNext())
    {
      Map.Entry localEntry2 = (Map.Entry)localIterator1.next();
      AnnotationIntrospector.ReferenceProperty localReferenceProperty2 = localAnnotationIntrospector.findReferenceType((AnnotatedMember)localEntry2.getValue());
      if ((localReferenceProperty2 != null) && (localReferenceProperty2.isBackReference()))
        continue;
      BeanPropertyWriter localBeanPropertyWriter2 = _constructWriter(paramSerializationConfig, localTypeBindings, localPropertyBuilder, bool, (String)localEntry2.getKey(), (AnnotatedMember)localEntry2.getValue());
      localArrayList.add(localBeanPropertyWriter2);
    }
    Iterator localIterator2 = localLinkedHashMap1.entrySet().iterator();
    while (localIterator2.hasNext())
    {
      Map.Entry localEntry1 = (Map.Entry)localIterator2.next();
      AnnotationIntrospector.ReferenceProperty localReferenceProperty1 = localAnnotationIntrospector.findReferenceType((AnnotatedMember)localEntry1.getValue());
      if ((localReferenceProperty1 != null) && (localReferenceProperty1.isBackReference()))
        continue;
      BeanPropertyWriter localBeanPropertyWriter1 = _constructWriter(paramSerializationConfig, localTypeBindings, localPropertyBuilder, bool, (String)localEntry1.getKey(), (AnnotatedMember)localEntry1.getValue());
      localArrayList.add(localBeanPropertyWriter1);
    }
  }
}
项目:ankush    文件:AnkushRestClient.java   
public AnkushRestClient() {
    mapper.setVisibilityChecker(mapper.getVisibilityChecker()
            .withFieldVisibility(Visibility.ANY));
}
项目:ankush    文件:AgentRestClient.java   
public AgentRestClient() {
    mapper.setVisibilityChecker(mapper.getVisibilityChecker()
            .withFieldVisibility(Visibility.ANY));
}
项目:RHome    文件:VisibilityChecker.java   
public Std withGetterVisibility(Visibility v) {
    if (v == Visibility.DEFAULT)  v = DEFAULT._getterMinLevel;
           if (_getterMinLevel == v) return this;
    return new Std(v, _isGetterMinLevel, _setterMinLevel, _creatorMinLevel, _fieldMinLevel);
}