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)
-
-
Constructor Summary
Constructors Constructor Description SinglePropertyMemberAccessRuntime(MemberAccess memberAccess)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
evaluate()
static boolean
isConvertible(MemberAccess memberAccess)
boolean
isNestedInLhs()
-
-
-
Constructor Detail
-
SinglePropertyMemberAccessRuntime
public SinglePropertyMemberAccessRuntime(MemberAccess memberAccess)
-
-
Method Detail
-
isConvertible
public static boolean isConvertible(MemberAccess memberAccess)
-
evaluate
public Object evaluate()
- Specified by:
evaluate
in interfaceIExpressionRuntime
-
isNestedInLhs
public boolean isNestedInLhs()
-
-