Enum Class MemberLookupMode

java.lang.Object
java.lang.Enum<MemberLookupMode>
org.pkl.core.ast.MemberLookupMode
All Implemented Interfaces:
Serializable, Comparable<MemberLookupMode>, Constable

public enum MemberLookupMode extends Enum<MemberLookupMode>
  • Enum Constant Details

    • IMPLICIT_LOCAL

      public static final MemberLookupMode IMPLICIT_LOCAL
      Lookup of a local member in the lexical scope.
    • IMPLICIT_LEXICAL

      public static final MemberLookupMode IMPLICIT_LEXICAL
      Lookup of a non-local member in the lexical scope.
    • IMPLICIT_BASE

      public static final MemberLookupMode IMPLICIT_BASE
      Member lookup whose implicit receiver is the pkl.base module.
    • IMPLICIT_THIS

      public static final MemberLookupMode IMPLICIT_THIS
      Member lookup whose implicit receiver is this.
    • EXPLICIT_RECEIVER

      public static final MemberLookupMode EXPLICIT_RECEIVER
      Member lookup with explicit receiver (e.g., foo.bar).
  • Method Details

    • values

      public static MemberLookupMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MemberLookupMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null