Package org.pkl.core.ast.member
Class Member
- java.lang.Object
-
- org.pkl.core.ast.member.Member
-
- Direct Known Subclasses:
ClassMember,Lambda,ObjectMember
public abstract class Member extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected com.oracle.truffle.api.source.SourceSectionheaderSectionprotected intmodifiersprotected @Nullable Identifiernameprotected java.lang.StringqualifiedNameprotected com.oracle.truffle.api.source.SourceSectionsourceSection
-
Constructor Summary
Constructors Constructor Description Member(com.oracle.truffle.api.source.SourceSection sourceSection, com.oracle.truffle.api.source.SourceSection headerSection, int modifiers, @Nullable Identifier name, java.lang.String qualifiedName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract @Nullable java.lang.StringgetCallSignature()For use in user-facing messages.com.oracle.truffle.api.source.SourceSectiongetHeaderSection()intgetModifiers()IdentifiergetName()@Nullable IdentifiergetNameOrNull()Null for members that don't have a name, such as listing/mapping members and lambdas.java.lang.StringgetQualifiedName()For use in user-facing messages.com.oracle.truffle.api.source.SourceSectiongetSourceSection()booleanisAbstract()booleanisClass()booleanisConst()booleanisConstOrFixed()booleanisExternal()booleanisFixed()booleanisGlob()booleanisHidden()booleanisImport()booleanisLocal()booleanisLocalOrExternalOrAbstract()booleanisLocalOrExternalOrHidden()booleanisType()booleanisTypeAlias()
-
-
-
Field Detail
-
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
protected final @Nullable Identifier name
-
qualifiedName
protected final java.lang.String qualifiedName
-
-
Constructor Detail
-
Member
public Member(com.oracle.truffle.api.source.SourceSection sourceSection, com.oracle.truffle.api.source.SourceSection headerSection, int modifiers, @Nullable Identifier name, java.lang.String qualifiedName)
-
-
Method Detail
-
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
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 java.lang.String getQualifiedName()
For use in user-facing messages. May contain placeholders for computed name parts.
-
getCallSignature
public abstract @Nullable java.lang.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()
-
-