Java tutorial
package com.fasterxml.jackson.databind.introspect; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility; import java.io.Serializable; import java.lang.reflect.Field; import java.lang.reflect.Member; import java.lang.reflect.Method; public abstract interface VisibilityChecker<T extends VisibilityChecker<T>> { public abstract boolean isCreatorVisible(AnnotatedMember paramAnnotatedMember); public abstract boolean isFieldVisible(AnnotatedField paramAnnotatedField); public abstract boolean isGetterVisible(AnnotatedMethod paramAnnotatedMethod); public abstract boolean isIsGetterVisible(AnnotatedMethod paramAnnotatedMethod); public abstract boolean isSetterVisible(AnnotatedMethod paramAnnotatedMethod); public abstract T with(JsonAutoDetect paramJsonAutoDetect); public abstract T withCreatorVisibility(JsonAutoDetect.Visibility paramVisibility); public abstract T withFieldVisibility(JsonAutoDetect.Visibility paramVisibility); public abstract T withGetterVisibility(JsonAutoDetect.Visibility paramVisibility); public abstract T withIsGetterVisibility(JsonAutoDetect.Visibility paramVisibility); public abstract T withSetterVisibility(JsonAutoDetect.Visibility paramVisibility); @JsonAutoDetect(creatorVisibility = JsonAutoDetect.Visibility.ANY, fieldVisibility = JsonAutoDetect.Visibility.PUBLIC_ONLY, getterVisibility = JsonAutoDetect.Visibility.PUBLIC_ONLY, isGetterVisibility = JsonAutoDetect.Visibility.PUBLIC_ONLY, setterVisibility = JsonAutoDetect.Visibility.ANY) public static class Std implements VisibilityChecker<Std>, Serializable { protected static final Std DEFAULT = new Std( (JsonAutoDetect) Std.class.getAnnotation(JsonAutoDetect.class)); protected final JsonAutoDetect.Visibility _creatorMinLevel; protected final JsonAutoDetect.Visibility _fieldMinLevel; protected final JsonAutoDetect.Visibility _getterMinLevel; protected final JsonAutoDetect.Visibility _isGetterMinLevel; protected final JsonAutoDetect.Visibility _setterMinLevel; 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; } public Std(JsonAutoDetect paramJsonAutoDetect) { this._getterMinLevel = paramJsonAutoDetect.getterVisibility(); this._isGetterMinLevel = paramJsonAutoDetect.isGetterVisibility(); this._setterMinLevel = paramJsonAutoDetect.setterVisibility(); this._creatorMinLevel = paramJsonAutoDetect.creatorVisibility(); this._fieldMinLevel = paramJsonAutoDetect.fieldVisibility(); } public static Std defaultInstance() { return DEFAULT; } public boolean isCreatorVisible(AnnotatedMember paramAnnotatedMember) { return isCreatorVisible(paramAnnotatedMember.getMember()); } public boolean isCreatorVisible(Member paramMember) { return this._creatorMinLevel.isVisible(paramMember); } public boolean isFieldVisible(AnnotatedField paramAnnotatedField) { return isFieldVisible(paramAnnotatedField.getAnnotated()); } public boolean isFieldVisible(Field paramField) { return this._fieldMinLevel.isVisible(paramField); } public boolean isGetterVisible(AnnotatedMethod paramAnnotatedMethod) { return isGetterVisible(paramAnnotatedMethod.getAnnotated()); } public boolean isGetterVisible(Method paramMethod) { return this._getterMinLevel.isVisible(paramMethod); } public boolean isIsGetterVisible(AnnotatedMethod paramAnnotatedMethod) { return isIsGetterVisible(paramAnnotatedMethod.getAnnotated()); } public boolean isIsGetterVisible(Method paramMethod) { return this._isGetterMinLevel.isVisible(paramMethod); } public boolean isSetterVisible(AnnotatedMethod paramAnnotatedMethod) { return isSetterVisible(paramAnnotatedMethod.getAnnotated()); } public boolean isSetterVisible(Method paramMethod) { return this._setterMinLevel.isVisible(paramMethod); } public String toString() { return "[Visibility:" + " getter: " + this._getterMinLevel + ", isGetter: " + this._isGetterMinLevel + ", setter: " + this._setterMinLevel + ", creator: " + this._creatorMinLevel + ", field: " + this._fieldMinLevel + "]"; } public Std with(JsonAutoDetect paramJsonAutoDetect) { if (paramJsonAutoDetect != null) this = withGetterVisibility(paramJsonAutoDetect.getterVisibility()) .withIsGetterVisibility(paramJsonAutoDetect.isGetterVisibility()) .withSetterVisibility(paramJsonAutoDetect.setterVisibility()) .withCreatorVisibility(paramJsonAutoDetect.creatorVisibility()) .withFieldVisibility(paramJsonAutoDetect.fieldVisibility()); return this; } 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); } } 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); } } 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); } } 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); } } 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); } } } } /* Location: /Users/dantheman/src/fffffffffattttt/basis/classes_dex2jar.jar * Qualified Name: com.fasterxml.jackson.databind.introspect.VisibilityChecker * JD-Core Version: 0.6.2 */