Class ObjectMember


  • public final class ObjectMember
    extends Member
    • Constructor Detail

      • ObjectMember

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

      • initConstantValue

        public void initConstantValue​(ConstantNode node)
      • initConstantValue

        public void initConstantValue​(java.lang.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 https://bugs.openjdk.java.net/browse/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

        public @Nullable java.lang.Object getConstantValue()
      • getCallTarget

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

        public boolean isUndefined()
      • getLocalPropertyDefaultValue

        public @Nullable java.lang.Object getLocalPropertyDefaultValue()
      • getCallSignature

        public @Nullable java.lang.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 java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object