Class SanitizedRequired

java.lang.Object
org.ek9lang.compiler.support.SanitizedRequired
All Implemented Interfaces:
Predicate<ISymbol>

public final class SanitizedRequired extends Object implements Predicate<ISymbol>
THE reading and marking of SANITIZED_REQUIRED: the as sanitized modifier on a parameter (and, by propagation, on an expression that is one of them). Seven places read the squirrel two ways - the front end as != null, the IR prologue as TRUE_VALUE.equals - and only TRUE_VALUE is ever written, so both said the same; they now ask here (front-end rationalisation F09/B-8). The marker means "the RECEIVER cleans this parameter", so it is read wherever a call, override, assignment or text/service signature must honour it. Its writer is SanitizedRequiredMarker.
  • Constructor Details

    • SanitizedRequired

      public SanitizedRequired()
  • Method Details

    • test

      public boolean test(ISymbol symbol)
      True when the symbol is a parameter declared as sanitized, or an expression derived from one.
      Specified by:
      test in interface Predicate<ISymbol>