Package org.pkl.core
Class PClass.ClassMember
- java.lang.Object
-
- org.pkl.core.Member
-
- org.pkl.core.PClass.ClassMember
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
PClass.Method,PClass.Property
- Enclosing class:
- PClass
public abstract static class PClass.ClassMember extends Member
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.pkl.core.Member
Member.SourceLocation
-
-
Constructor Summary
Constructors Constructor Description ClassMember(@Nullable java.lang.String docComment, Member.SourceLocation sourceLocation, java.util.Set<Modifier> modifiers, java.util.List<PObject> annotations, java.lang.String simpleName, PClass owner)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract @Nullable java.lang.StringgetInheritedDocComment()Returns the documentation comment of this member.java.lang.StringgetModuleName()Returns the name of the module that this member is declared in.PClassgetOwner()Returns the class declaring this member.-
Methods inherited from class org.pkl.core.Member
getAnnotations, getDocComment, getModifiers, getSimpleName, getSourceLocation, isAbstract, isExternal, isHidden, isOpen, isStandardLibraryMember
-
-
-
-
Constructor Detail
-
ClassMember
public ClassMember(@Nullable java.lang.String docComment, Member.SourceLocation sourceLocation, java.util.Set<Modifier> modifiers, java.util.List<PObject> annotations, java.lang.String simpleName, PClass owner)
-
-
Method Detail
-
getModuleName
public java.lang.String getModuleName()
Description copied from class:MemberReturns the name of the module that this member is declared in.- Specified by:
getModuleNamein classMember
-
getOwner
public PClass getOwner()
Returns the class declaring this member.
-
getInheritedDocComment
public abstract @Nullable java.lang.String getInheritedDocComment()
Returns the documentation comment of this member. If this member does not have a documentation comment, returns the documentation comment of the nearest documented ancestor, if any.
-
-