Package org.pkl.core.ast.member
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 Summary
Fields Modifier and Type Field Description protected java.util.List<VmTyped>annotationsprotected @Nullable com.oracle.truffle.api.source.SourceSectiondocComment-
Fields inherited from class org.pkl.core.ast.member.Member
headerSection, modifiers, name, qualifiedName, sourceSection
-
-
Constructor Summary
Constructors Constructor Description ClassMember(com.oracle.truffle.api.source.SourceSection sourceSection, com.oracle.truffle.api.source.SourceSection headerSection, int modifiers, Identifier name, java.lang.String qualifiedName, @Nullable com.oracle.truffle.api.source.SourceSection docComment, java.util.List<VmTyped> annotations, VmTyped owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<VmTyped>getAnnotations()VmClassgetDeclaringClass()@Nullable com.oracle.truffle.api.source.SourceSectiongetDocComment()VmTypedgetOwner()Returns the prototype of the class that declares this member.-
Methods inherited from class org.pkl.core.ast.member.Member
getCallSignature, getHeaderSection, getModifiers, getName, getNameOrNull, getQualifiedName, getSourceSection, isAbstract, isClass, isConst, isConstOrFixed, isExternal, isFixed, isGlob, isHidden, isImport, isLocal, isLocalOrExternalOrAbstract, isLocalOrExternalOrHidden, isType, isTypeAlias
-
-
-
-
Constructor Detail
-
ClassMember
public ClassMember(com.oracle.truffle.api.source.SourceSection sourceSection, com.oracle.truffle.api.source.SourceSection headerSection, int modifiers, Identifier name, java.lang.String qualifiedName, @Nullable com.oracle.truffle.api.source.SourceSection docComment, java.util.List<VmTyped> annotations, VmTyped owner)
-
-
Method Detail
-
getDocComment
public final @Nullable com.oracle.truffle.api.source.SourceSection getDocComment()
-
getAnnotations
public final java.util.List<VmTyped> getAnnotations()
-
getOwner
public final VmTyped getOwner()
Returns the prototype of the class that declares this member.
-
getDeclaringClass
public final VmClass getDeclaringClass()
-
-