Enum Class PropertyAccessors.Strategy
java.lang.Object
java.lang.Enum<PropertyAccessors.Strategy>
cloud.opencode.base.reflect.accessor.PropertyAccessors.Strategy
- All Implemented Interfaces:
Serializable, Comparable<PropertyAccessors.Strategy>, Constable
- Enclosing class:
PropertyAccessors
Access strategy enumeration
访问策略枚举
- Since:
- JDK 25, opencode-base-reflect V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAuto-select best strategy 自动选择最佳策略Use getter/setter methods 使用getter/setter方法Use field reflection 使用字段反射Use LambdaMetafactory (fastest after warmup) 使用LambdaMetafactory(预热后最快)Use MethodHandle (fast after warmup) 使用MethodHandle(预热后快)Use VarHandle (for atomic ops) 使用VarHandle(用于原子操作) -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyAccessors.StrategyReturns the enum constant of this class with the specified name.static PropertyAccessors.Strategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIELD
Use field reflection 使用字段反射 -
BEAN
Use getter/setter methods 使用getter/setter方法 -
METHOD_HANDLE
Use MethodHandle (fast after warmup) 使用MethodHandle(预热后快) -
VAR_HANDLE
Use VarHandle (for atomic ops) 使用VarHandle(用于原子操作) -
LAMBDA
Use LambdaMetafactory (fastest after warmup) 使用LambdaMetafactory(预热后最快) -
AUTO
Auto-select best strategy 自动选择最佳策略
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-