类 EnvironmentAccessor
java.lang.Object
cn.taketoday.context.expression.EnvironmentAccessor
- 所有已实现的接口:
cn.taketoday.expression.PropertyAccessor
Read-only EL property accessor that knows how to retrieve keys
of a
Environment instance.- 从以下版本开始:
- 4.0
- 作者:
- Chris Beams
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanCan read anyEnvironment, thus always returns true.booleanRead-only: returnsfalse.Class<?>[]cn.taketoday.expression.TypedValueAccess the given target object by resolving the given property name against the given target environment.voidwrite(cn.taketoday.expression.EvaluationContext context, Object target, String name, Object newValue) Read-only: no-op.
-
构造器详细资料
-
EnvironmentAccessor
public EnvironmentAccessor()
-
-
方法详细资料
-
getSpecificTargetClasses
- 指定者:
getSpecificTargetClasses在接口中cn.taketoday.expression.PropertyAccessor
-
canRead
public boolean canRead(cn.taketoday.expression.EvaluationContext context, @Nullable Object target, String name) throws cn.taketoday.expression.AccessException Can read anyEnvironment, thus always returns true.- 指定者:
canRead在接口中cn.taketoday.expression.PropertyAccessor- 返回:
- true
- 抛出:
cn.taketoday.expression.AccessException
-
read
public cn.taketoday.expression.TypedValue read(cn.taketoday.expression.EvaluationContext context, @Nullable Object target, String name) throws cn.taketoday.expression.AccessException Access the given target object by resolving the given property name against the given target environment.- 指定者:
read在接口中cn.taketoday.expression.PropertyAccessor- 抛出:
cn.taketoday.expression.AccessException
-
canWrite
public boolean canWrite(cn.taketoday.expression.EvaluationContext context, @Nullable Object target, String name) throws cn.taketoday.expression.AccessException Read-only: returnsfalse.- 指定者:
canWrite在接口中cn.taketoday.expression.PropertyAccessor- 抛出:
cn.taketoday.expression.AccessException
-
write
public void write(cn.taketoday.expression.EvaluationContext context, @Nullable Object target, String name, @Nullable Object newValue) throws cn.taketoday.expression.AccessException Read-only: no-op.- 指定者:
write在接口中cn.taketoday.expression.PropertyAccessor- 抛出:
cn.taketoday.expression.AccessException
-