Package org.pkl.core.ast.member
Class ClassProperty
- java.lang.Object
-
- org.pkl.core.ast.member.Member
-
- org.pkl.core.ast.member.ClassMember
-
- org.pkl.core.ast.member.ClassProperty
-
public final class ClassProperty extends ClassMember
-
-
Field Summary
-
Fields inherited from class org.pkl.core.ast.member.ClassMember
annotations, docComment
-
Fields inherited from class org.pkl.core.ast.member.Member
headerSection, modifiers, name, qualifiedName, sourceSection
-
-
Constructor Summary
Constructors Constructor Description ClassProperty(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, @Nullable PropertyTypeNode typeNode, ObjectMember initializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PClass.Propertyexport(PClass owner)java.lang.StringgetCallSignature()For use in user-facing messages.ObjectMembergetInitializer()VmTypedgetMirror()VmSetgetModifierMirrors()VmTypedgetTypeMirror()@Nullable PropertyTypeNodegetTypeNode()-
Methods inherited from class org.pkl.core.ast.member.ClassMember
getAnnotations, getDeclaringClass, getDocComment, getOwner
-
Methods inherited from class org.pkl.core.ast.member.Member
getHeaderSection, getModifiers, getName, getNameOrNull, getQualifiedName, getSourceSection, isAbstract, isClass, isConst, isConstOrFixed, isExternal, isFixed, isGlob, isHidden, isImport, isLocal, isLocalOrExternalOrAbstract, isLocalOrExternalOrHidden, isType, isTypeAlias
-
-
-
-
Constructor Detail
-
ClassProperty
public ClassProperty(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, @Nullable PropertyTypeNode typeNode, ObjectMember initializer)
-
-
Method Detail
-
getTypeNode
public @Nullable PropertyTypeNode getTypeNode()
-
getInitializer
public ObjectMember getInitializer()
-
getCallSignature
public java.lang.String getCallSignature()
Description copied from class:MemberFor use in user-facing messages. Non-null iff getName() is non-null.- Specified by:
getCallSignaturein classMember
-
getMirror
public VmTyped getMirror()
-
getModifierMirrors
public VmSet getModifierMirrors()
-
getTypeMirror
public VmTyped getTypeMirror()
-
export
public PClass.Property export(PClass owner)
-
-