Package org.pkl.core
Class Member
- java.lang.Object
-
- org.pkl.core.Member
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
PClass,PClass.ClassMember,TypeAlias
public abstract class Member extends java.lang.Object implements java.io.SerializableCommon base class for TypeAlias, PClass, PClass.Property, and PClass.Method.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMember.SourceLocation
-
Constructor Summary
Constructors Constructor Description Member(@Nullable java.lang.String docComment, Member.SourceLocation sourceLocation, java.util.Set<Modifier> modifiers, java.util.List<PObject> annotations, java.lang.String simpleName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.List<PObject>getAnnotations()Returns the annotations of this member.@Nullable java.lang.StringgetDocComment()Returns the documentation comment of this member.java.util.Set<Modifier>getModifiers()Returns the modifiers of this member.abstract java.lang.StringgetModuleName()Returns the name of the module that this member is declared in.java.lang.StringgetSimpleName()Returns the unqualified name of this member.Member.SourceLocationgetSourceLocation()Returns the source location, such as start and end line, of this member.booleanisAbstract()Tells if this member has anabstractmodifier.booleanisExternal()Tells if this member has anexternalmodifier.booleanisHidden()Tells if this member has ahiddenmodifier.booleanisOpen()Tells if this member has anopenmodifier.booleanisStandardLibraryMember()Tells if this member is defined in Pkl's standard library.
-
-
-
Constructor Detail
-
Member
public Member(@Nullable java.lang.String docComment, Member.SourceLocation sourceLocation, java.util.Set<Modifier> modifiers, java.util.List<PObject> annotations, java.lang.String simpleName)
-
-
Method Detail
-
getModuleName
public abstract java.lang.String getModuleName()
Returns the name of the module that this member is declared in.
-
getDocComment
public @Nullable java.lang.String getDocComment()
Returns the documentation comment of this member.
-
getSourceLocation
public Member.SourceLocation getSourceLocation()
Returns the source location, such as start and end line, of this member.
-
getModifiers
public java.util.Set<Modifier> getModifiers()
Returns the modifiers of this member.
-
getAnnotations
public java.util.List<PObject> getAnnotations()
Returns the annotations of this member.
-
isExternal
public boolean isExternal()
Tells if this member has anexternalmodifier.
-
isAbstract
public boolean isAbstract()
Tells if this member has anabstractmodifier.
-
isHidden
public boolean isHidden()
Tells if this member has ahiddenmodifier.
-
isOpen
public boolean isOpen()
Tells if this member has anopenmodifier.
-
isStandardLibraryMember
public final boolean isStandardLibraryMember()
Tells if this member is defined in Pkl's standard library.
-
getSimpleName
public java.lang.String getSimpleName()
Returns the unqualified name of this member.
-
-