public static class BeanVisitor.Opt extends Object
| Modifier and Type | Field and Description |
|---|---|
static BeanVisitor.Opt |
Default |
| Constructor and Description |
|---|
Opt() |
| Modifier and Type | Method and Description |
|---|---|
BeanVisitor.Opt |
amendOnce(boolean b)
Whether be modified by Visitor only once, default is true.
|
int |
getWalkDepth() |
boolean |
isAmendOnce() |
boolean |
isSkipFinal() |
boolean |
isSkipTransient() |
boolean |
isThrowOnError() |
boolean |
isTryRawGetter() |
BeanVisitor.Opt |
skipFinal(boolean b)
Whether to skip final fields, default true.
|
BeanVisitor.Opt |
skipTransient(boolean b)
Whether to skip Transient field and @Transient Getter, default true
|
BeanVisitor.Opt |
throwOnError(boolean b)
Whether to throw or ignore exception, default true to throw
|
BeanVisitor.Opt |
tryRawGetter(boolean b)
Whether to include a Getter of the same name as the field in the form of xxx(), default true
|
BeanVisitor.Opt |
walkDepth(int depth)
Set the visit depth, java bean only, not collection or array, default Integer.MAX_VALUE
|
public static final BeanVisitor.Opt Default
public boolean isAmendOnce()
public boolean isSkipFinal()
public boolean isSkipTransient()
public boolean isTryRawGetter()
public boolean isThrowOnError()
public int getWalkDepth()
@Contract(value="_->this") public BeanVisitor.Opt amendOnce(boolean b)
@Contract(value="_->this") public BeanVisitor.Opt skipFinal(boolean b)
Whether to skip final fields, default true. A final with an initial value is inline at compile time, and modifying it does not change the return value of the getter Initializing final values with the constructor does not have this restriction. See JLS 17.5.3 compile-time constants get inlined
@Contract(value="_->this") public BeanVisitor.Opt skipTransient(boolean b)
@Contract(value="_->this") public BeanVisitor.Opt tryRawGetter(boolean b)
@Contract(value="_->this") public BeanVisitor.Opt throwOnError(boolean b)
@Contract(value="_->this") public BeanVisitor.Opt walkDepth(int depth)
Copyright © 2024. All rights reserved.