本文整理匯總了Java中com.fasterxml.jackson.databind.AnnotationIntrospector.hasIgnoreMarker方法的典型用法代碼示例。如果您正苦於以下問題:Java AnnotationIntrospector.hasIgnoreMarker方法的具體用法?Java AnnotationIntrospector.hasIgnoreMarker怎麽用?Java AnnotationIntrospector.hasIgnoreMarker使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.fasterxml.jackson.databind.AnnotationIntrospector
的用法示例。
在下文中一共展示了AnnotationIntrospector.hasIgnoreMarker方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: _addFields
import com.fasterxml.jackson.databind.AnnotationIntrospector; //導入方法依賴的package包/類
protected void _addFields()
{
AnnotationIntrospector localAnnotationIntrospector = this._annotationIntrospector;
int i;
if ((!this._forSerialization) && (!this._config.isEnabled(MapperFeature.ALLOW_FINAL_FIELDS_AS_MUTATORS)))
i = 1;
else
i = 0;
Iterator localIterator = this._classDef.fields().iterator();
while (localIterator.hasNext())
{
AnnotatedField localAnnotatedField = (AnnotatedField)localIterator.next();
String str1 = localAnnotatedField.getName();
String str2;
if (localAnnotationIntrospector == null)
{
str2 = null;
}
else if (this._forSerialization)
{
PropertyName localPropertyName2 = localAnnotationIntrospector.findNameForSerialization(localAnnotatedField);
if (localPropertyName2 == null)
str2 = null;
else
str2 = localPropertyName2.getSimpleName();
}
else
{
PropertyName localPropertyName1 = localAnnotationIntrospector.findNameForDeserialization(localAnnotatedField);
if (localPropertyName1 == null)
str2 = null;
else
str2 = localPropertyName1.getSimpleName();
}
if ("".equals(str2))
str2 = str1;
boolean bool1;
if (str2 != null)
bool1 = true;
else
bool1 = false;
boolean bool2 = bool1;
if (!bool1)
bool2 = this._visibilityChecker.isFieldVisible(localAnnotatedField);
boolean bool3;
if ((localAnnotationIntrospector != null) && (localAnnotationIntrospector.hasIgnoreMarker(localAnnotatedField)))
bool3 = true;
else
bool3 = false;
if ((i == 0) || (str2 != null) || (bool3) || (!Modifier.isFinal(localAnnotatedField.getModifiers())))
_property(str1).addField(localAnnotatedField, str2, bool2, bool3);
}
}
示例2: _addGetterMethod
import com.fasterxml.jackson.databind.AnnotationIntrospector; //導入方法依賴的package包/類
protected void _addGetterMethod(AnnotatedMethod paramAnnotatedMethod, AnnotationIntrospector paramAnnotationIntrospector)
{
if (paramAnnotationIntrospector != null)
{
if (paramAnnotationIntrospector.hasAnyGetterAnnotation(paramAnnotatedMethod))
{
if (this._anyGetters == null)
this._anyGetters = new LinkedList();
this._anyGetters.add(paramAnnotatedMethod);
return;
}
if (paramAnnotationIntrospector.hasAsValueAnnotation(paramAnnotatedMethod))
{
if (this._jsonValueGetters == null)
this._jsonValueGetters = new LinkedList();
this._jsonValueGetters.add(paramAnnotatedMethod);
return;
}
}
PropertyName localPropertyName1;
if (paramAnnotationIntrospector == null)
localPropertyName1 = null;
else
localPropertyName1 = paramAnnotationIntrospector.findNameForSerialization(paramAnnotatedMethod);
PropertyName localPropertyName2 = localPropertyName1;
String str1;
if (localPropertyName1 == null)
str1 = null;
else
str1 = localPropertyName2.getSimpleName();
Object localObject1 = str1;
Object localObject2;
boolean bool1;
if (str1 == null)
{
String str3 = BeanUtil.okNameForRegularGetter(paramAnnotatedMethod, paramAnnotatedMethod.getName());
localObject2 = str3;
if (str3 == null)
{
String str4 = BeanUtil.okNameForIsGetter(paramAnnotatedMethod, paramAnnotatedMethod.getName());
localObject2 = str4;
if (str4 == null)
return;
bool1 = this._visibilityChecker.isIsGetterVisible(paramAnnotatedMethod);
}
else
{
bool1 = this._visibilityChecker.isGetterVisible(paramAnnotatedMethod);
}
}
else
{
String str2 = BeanUtil.okNameForGetter(paramAnnotatedMethod);
localObject2 = str2;
if (str2 == null)
localObject2 = paramAnnotatedMethod.getName();
if (((String)localObject1).length() == 0)
localObject1 = localObject2;
bool1 = true;
}
boolean bool2;
if (paramAnnotationIntrospector == null)
bool2 = false;
else
bool2 = paramAnnotationIntrospector.hasIgnoreMarker(paramAnnotatedMethod);
_property((String)localObject2).addGetter(paramAnnotatedMethod, (String)localObject1, bool1, bool2);
}
示例3: _addSetterMethod
import com.fasterxml.jackson.databind.AnnotationIntrospector; //導入方法依賴的package包/類
protected void _addSetterMethod(AnnotatedMethod paramAnnotatedMethod, AnnotationIntrospector paramAnnotationIntrospector)
{
PropertyName localPropertyName1;
if (paramAnnotationIntrospector == null)
localPropertyName1 = null;
else
localPropertyName1 = paramAnnotationIntrospector.findNameForDeserialization(paramAnnotatedMethod);
PropertyName localPropertyName2 = localPropertyName1;
String str1;
if (localPropertyName1 == null)
str1 = null;
else
str1 = localPropertyName2.getSimpleName();
Object localObject1 = str1;
Object localObject2;
boolean bool1;
if (str1 == null)
{
String str3 = BeanUtil.okNameForMutator(paramAnnotatedMethod, this._mutatorPrefix);
localObject2 = str3;
if (str3 == null)
return;
bool1 = this._visibilityChecker.isSetterVisible(paramAnnotatedMethod);
}
else
{
String str2 = BeanUtil.okNameForMutator(paramAnnotatedMethod, this._mutatorPrefix);
localObject2 = str2;
if (str2 == null)
localObject2 = paramAnnotatedMethod.getName();
if (((String)localObject1).length() == 0)
localObject1 = localObject2;
bool1 = true;
}
boolean bool2;
if (paramAnnotationIntrospector == null)
bool2 = false;
else
bool2 = paramAnnotationIntrospector.hasIgnoreMarker(paramAnnotatedMethod);
_property((String)localObject2).addSetter(paramAnnotatedMethod, (String)localObject1, bool1, bool2);
}