Package org.pkl.core.ast
Enum Class MemberLookupMode
- All Implemented Interfaces:
Serializable,Comparable<MemberLookupMode>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMember lookup with explicit receiver (e.g.,foo.bar).Member lookup whose implicit receiver is thepkl.basemodule.Lookup of a non-local member in the lexical scope.Lookup of a local member in the lexical scope.Member lookup whose implicit receiver isthis. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemberLookupModeReturns the enum constant of this class with the specified name.static MemberLookupMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IMPLICIT_LOCAL
Lookup of a local member in the lexical scope. -
IMPLICIT_LEXICAL
Lookup of a non-local member in the lexical scope. -
IMPLICIT_BASE
Member lookup whose implicit receiver is thepkl.basemodule. -
IMPLICIT_THIS
Member lookup whose implicit receiver isthis. -
EXPLICIT_RECEIVER
Member lookup with explicit receiver (e.g.,foo.bar).
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-