Class ClassMember

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

public abstract class ClassMember extends Member
  • Field Details

    • docComment

      @Nullable protected final @Nullable com.oracle.truffle.api.source.SourceSection docComment
    • annotations

      protected final List<VmTyped> annotations
  • Constructor Details

    • ClassMember

      public ClassMember(com.oracle.truffle.api.source.SourceSection sourceSection, com.oracle.truffle.api.source.SourceSection headerSection, int modifiers, Identifier name, String qualifiedName, @Nullable @Nullable com.oracle.truffle.api.source.SourceSection docComment, List<VmTyped> annotations, VmTyped owner)
  • Method Details

    • getDocComment

      @Nullable public final @Nullable com.oracle.truffle.api.source.SourceSection getDocComment()
    • getAnnotations

      public final List<VmTyped> getAnnotations()
    • getOwner

      public final VmTyped getOwner()
      Returns the prototype of the class that declares this member.
    • getDeclaringClass

      public final VmClass getDeclaringClass()