Package org.apache.johnzon.mapper.access
Class FieldAndMethodAccessMode
- java.lang.Object
-
- org.apache.johnzon.mapper.access.BaseAccessMode
-
- org.apache.johnzon.mapper.access.FieldAndMethodAccessMode
-
- All Implemented Interfaces:
AccessMode
public class FieldAndMethodAccessMode extends BaseAccessMode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FieldAndMethodAccessMode.CompositeDecoratedType<T extends AccessMode.DecoratedType>
static class
FieldAndMethodAccessMode.CompositeReader
static class
FieldAndMethodAccessMode.CompositeWriter
-
Nested classes/interfaces inherited from class org.apache.johnzon.mapper.access.BaseAccessMode
BaseAccessMode.AllEntriesFieldFilteringStrategy, BaseAccessMode.ConfiguredFieldFilteringStrategy, BaseAccessMode.FieldFilteringStrategy, BaseAccessMode.SingleEntryFieldFilteringStrategy
-
Nested classes/interfaces inherited from interface org.apache.johnzon.mapper.access.AccessMode
AccessMode.DecoratedType, AccessMode.Factory, AccessMode.Reader, AccessMode.Writer
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
alwaysPreferMethodVisibility
private FieldAccessMode
fields
private boolean
ignoreVisibilityFilter
private MethodAccessMode
methods
-
Constructor Summary
Constructors Constructor Description FieldAndMethodAccessMode(boolean useConstructor, boolean acceptHiddenConstructor, boolean useGettersAsWriter)
Deprecated.FieldAndMethodAccessMode(boolean useConstructor, boolean acceptHiddenConstructor, boolean useGettersAsWriter, boolean alwaysPreferMethodVisibility)
Deprecated.FieldAndMethodAccessMode(boolean useConstructor, boolean acceptHiddenConstructor, boolean useGettersAsWriter, boolean alwaysPreferMethodVisibility, boolean ignoreVisibilityFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,AccessMode.Reader>
doFindReaders(Class<?> clazz)
Map<String,AccessMode.Writer>
doFindWriters(Class<?> clazz)
private Field
getField(String fieldName, Class<?> type)
private Method
getMethod(String methodName, Class<?> type, Class<?>... args)
private Class<?>
toType(Type type)
-
Methods inherited from class org.apache.johnzon.mapper.access.BaseAccessMode
afterParsed, fieldComparator, findAdapter, findAnyField, findAnyGetter, findAnySetter, findFactory, findReader, findReaders, findWriter, findWriters, getFieldFilteringStrategy, setFieldFilteringStrategy
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.johnzon.mapper.access.AccessMode
findFactory, findMapAdder
-
-
-
-
Field Detail
-
fields
private final FieldAccessMode fields
-
methods
private final MethodAccessMode methods
-
alwaysPreferMethodVisibility
private final boolean alwaysPreferMethodVisibility
-
ignoreVisibilityFilter
private final boolean ignoreVisibilityFilter
-
-
Constructor Detail
-
FieldAndMethodAccessMode
public FieldAndMethodAccessMode(boolean useConstructor, boolean acceptHiddenConstructor, boolean useGettersAsWriter, boolean alwaysPreferMethodVisibility, boolean ignoreVisibilityFilter)
-
FieldAndMethodAccessMode
@Deprecated public FieldAndMethodAccessMode(boolean useConstructor, boolean acceptHiddenConstructor, boolean useGettersAsWriter, boolean alwaysPreferMethodVisibility)
Deprecated.
-
FieldAndMethodAccessMode
@Deprecated public FieldAndMethodAccessMode(boolean useConstructor, boolean acceptHiddenConstructor, boolean useGettersAsWriter)
Deprecated.
-
-
Method Detail
-
doFindReaders
public Map<String,AccessMode.Reader> doFindReaders(Class<?> clazz)
- Specified by:
doFindReaders
in classBaseAccessMode
-
doFindWriters
public Map<String,AccessMode.Writer> doFindWriters(Class<?> clazz)
- Specified by:
doFindWriters
in classBaseAccessMode
-
-