Class SinglePropertyMemberAccessRuntime

java.lang.Object
gw.internal.gosu.parser.optimizer.SinglePropertyMemberAccessRuntime
All Implemented Interfaces:
IExpressionRuntime

public class SinglePropertyMemberAccessRuntime extends Object implements IExpressionRuntime
Note this class really isn't an "expression runtime", it's real purpose is to determine whether or not the corresponding member-access is in the lhs of an assignment. This info can be useful to decide if null values in the member path can be auto-assigned (see the gw.lang.Autocreate annotation)
  • Field Details

    • _bNestedInLhs

      private boolean _bNestedInLhs
  • Constructor Details

    • SinglePropertyMemberAccessRuntime

      public SinglePropertyMemberAccessRuntime(MemberAccess memberAccess)
  • Method Details

    • isConvertible

      public static boolean isConvertible(MemberAccess memberAccess)
    • evaluate

      public Object evaluate()
      Specified by:
      evaluate in interface IExpressionRuntime
    • isNestedInLhs

      public boolean isNestedInLhs()