Class Member

java.lang.Object
org.pkl.core.ast.member.Member
Direct Known Subclasses:
ClassMember, Lambda, ObjectMember

public abstract class Member extends Object
  • Field Details

    • sourceSection

      protected final com.oracle.truffle.api.source.SourceSection sourceSection
    • headerSection

      protected final com.oracle.truffle.api.source.SourceSection headerSection
    • modifiers

      protected final int modifiers
    • name

      @Nullable protected final @Nullable Identifier name
    • qualifiedName

      protected final String qualifiedName
  • Constructor Details

    • Member

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

    • getSourceSection

      public final com.oracle.truffle.api.source.SourceSection getSourceSection()
    • getHeaderSection

      public final com.oracle.truffle.api.source.SourceSection getHeaderSection()
    • getModifiers

      public final int getModifiers()
    • getNameOrNull

      @Nullable public @Nullable Identifier getNameOrNull()
      Null for members that don't have a name, such as listing/mapping members and lambdas.
    • getName

      public Identifier getName()
    • getQualifiedName

      public final String getQualifiedName()
      For use in user-facing messages. May contain placeholders for computed name parts.
    • getCallSignature

      @Nullable public abstract @Nullable String getCallSignature()
      For use in user-facing messages. Non-null iff getName() is non-null.
    • isLocal

      public final boolean isLocal()
    • isConst

      public final boolean isConst()
    • isFixed

      public final boolean isFixed()
    • isHidden

      public final boolean isHidden()
    • isExternal

      public final boolean isExternal()
    • isClass

      public final boolean isClass()
    • isTypeAlias

      public final boolean isTypeAlias()
    • isImport

      public final boolean isImport()
    • isGlob

      public final boolean isGlob()
    • isAbstract

      public final boolean isAbstract()
    • isType

      public final boolean isType()
    • isLocalOrExternalOrHidden

      public final boolean isLocalOrExternalOrHidden()
    • isConstOrFixed

      public final boolean isConstOrFixed()
    • isLocalOrExternalOrAbstract

      public final boolean isLocalOrExternalOrAbstract()