类 EnvironmentAccessor

java.lang.Object
cn.taketoday.context.expression.EnvironmentAccessor
所有已实现的接口:
cn.taketoday.expression.PropertyAccessor

public class EnvironmentAccessor extends Object implements cn.taketoday.expression.PropertyAccessor
Read-only EL property accessor that knows how to retrieve keys of a Environment instance.
从以下版本开始:
4.0
作者:
Chris Beams
  • 构造器详细资料

    • EnvironmentAccessor

      public EnvironmentAccessor()
  • 方法详细资料

    • getSpecificTargetClasses

      public Class<?>[] 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 any Environment, 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: returns false.
      指定者:
      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