Package org.ek9lang.compiler.phase5
Class ExpressionSimpleForSafeAccess
java.lang.Object
org.ek9lang.compiler.phase5.ExpressionSimpleForSafeAccess
- All Implemented Interfaces:
Predicate<EK9Parser.ExpressionContext>
final class ExpressionSimpleForSafeAccess
extends Object
implements Predicate<EK9Parser.ExpressionContext>
Just checks if the expression as defined by the ANTLR AST is simple enough to be assessed
to make any Result/Optional get()/ok()/error() method calls safe.
This only checks the nature of the expression for using 'and' and no 'not'.
-
Constructor Details
-
ExpressionSimpleForSafeAccess
ExpressionSimpleForSafeAccess()
-
-
Method Details
-
test
- Specified by:
test
in interfacePredicate<EK9Parser.ExpressionContext>
-