Class IsDelegateCall

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

public final class IsDelegateCall extends Object implements Predicate<ISymbol>
THE reading of how a function call finds the function instance it invokes - hold one and ask it, never read the DELEGATE_CALL mark by hand. Phase 3 marks a call whose function comes from a variable (or the result of a chained call) rather than being named; every call generator asks here.
  • Constructor Details

    • IsDelegateCall

      public IsDelegateCall()
  • Method Details

    • test

      public boolean test(ISymbol recordedCallSymbol)
      True when the recorded call symbol is a delegate call: the function instance is loaded from a variable (or is the result of an inner call) instead of being the named function's singleton.
      Specified by:
      test in interface Predicate<ISymbol>
      Parameters:
      recordedCallSymbol - the symbol recorded against the call, which may be null or not a call