Class ObjectMember

java.lang.Object
org.pkl.core.ast.member.Member
org.pkl.core.ast.member.ObjectMember

public final class ObjectMember extends Member
  • Constructor Details

    • ObjectMember

      public ObjectMember(com.oracle.truffle.api.source.SourceSection sourceSection, com.oracle.truffle.api.source.SourceSection headerSection, int modifiers, @Nullable @Nullable Identifier name, String qualifiedName)
  • Method Details

    • initConstantValue

      public void initConstantValue(ConstantNode node)
    • initConstantValue

      public void initConstantValue(Object value)
    • initMemberNode

      public void initMemberNode(MemberNode node)
    • isProp

      public boolean isProp()
      Tells if this member is a property.

      Not named `isProperty()` to work around JDK-8185424 (which is apparently triggered by `-Xdoclint:none`).

    • isElement

      public boolean isElement()
      Tells if this member is an element.
    • isEntry

      public boolean isEntry()
      Tells if this member is an entry. Note that this returns true if an existing element is overridden with entry syntax (e.g., `[3] = ...`).
    • getConstantValue

      @Nullable public @Nullable Object getConstantValue()
    • getMemberNode

      @Nullable public @Nullable MemberNode getMemberNode()
    • getCallTarget

      public com.oracle.truffle.api.RootCallTarget getCallTarget()
    • isUndefined

      public boolean isUndefined()
    • getLocalPropertyDefaultValue

      @Nullable public @Nullable Object getLocalPropertyDefaultValue()
    • getCallSignature

      @Nullable public @Nullable String getCallSignature()
      Description copied from class: Member
      For use in user-facing messages. Non-null iff getName() is non-null.
      Specified by:
      getCallSignature in class Member
    • getBodySection

      public com.oracle.truffle.api.source.SourceSection getBodySection()
    • equals

      public boolean equals(@Nullable @Nullable Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object