Package org.pkl.core.ast.member
Class ObjectMember
java.lang.Object
org.pkl.core.ast.member.Member
org.pkl.core.ast.member.ObjectMember
-
Field Summary
Fields inherited from class org.pkl.core.ast.member.Member
headerSection, modifiers, name, qualifiedName, sourceSection -
Constructor Summary
ConstructorsConstructorDescriptionObjectMember(com.oracle.truffle.api.source.SourceSection sourceSection, com.oracle.truffle.api.source.SourceSection headerSection, int modifiers, @Nullable Identifier name, String qualifiedName) -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.oracle.truffle.api.source.SourceSectionFor use in user-facing messages.com.oracle.truffle.api.RootCallTargetinthashCode()voidinitConstantValue(Object value) voidvoidinitMemberNode(MemberNode node) booleanTells if this member is an element.booleanisEntry()Tells if this member is an entry.booleanisProp()Tells if this member is a property.booleanMethods inherited from class org.pkl.core.ast.member.Member
getHeaderSection, getModifiers, getName, getNameOrNull, getQualifiedName, getSourceSection, isAbstract, isClass, isConst, isConstOrFixed, isExternal, isFixed, isGlob, isHidden, isImport, isLocal, isLocalOrExternalOrAbstract, isLocalOrExternalOrHidden, isType, isTypeAlias
-
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
-
initConstantValue
-
initMemberNode
-
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
-
getMemberNode
-
getCallTarget
public com.oracle.truffle.api.RootCallTarget getCallTarget() -
isUndefined
public boolean isUndefined() -
getLocalPropertyDefaultValue
-
getCallSignature
Description copied from class:MemberFor use in user-facing messages. Non-null iff getName() is non-null.- Specified by:
getCallSignaturein classMember
-
getBodySection
public com.oracle.truffle.api.source.SourceSection getBodySection() -
equals
-
hashCode
public int hashCode()
-