Package org.pkl.core
Class PClass.Method
- java.lang.Object
-
- org.pkl.core.Member
-
- org.pkl.core.PClass.ClassMember
-
- org.pkl.core.PClass.Method
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- PClass
public static final class PClass.Method extends PClass.ClassMember
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.pkl.core.Member
Member.SourceLocation
-
-
Constructor Summary
Constructors Constructor Description Method(PClass owner, @Nullable java.lang.String docComment, Member.SourceLocation sourceLocation, java.util.Set<Modifier> modifiers, java.util.List<PObject> annotations, java.lang.String simpleName, java.util.List<TypeParameter> typeParameters, java.util.Map<java.lang.String,PType> parameters, PType returnType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.lang.StringgetInheritedDocComment()Returns the documentation comment of this member.java.util.Map<java.lang.String,PType>getParameters()PTypegetReturnType()java.util.List<TypeParameter>getTypeParameters()-
Methods inherited from class org.pkl.core.PClass.ClassMember
getModuleName, getOwner
-
Methods inherited from class org.pkl.core.Member
getAnnotations, getDocComment, getModifiers, getSimpleName, getSourceLocation, isAbstract, isExternal, isHidden, isOpen, isStandardLibraryMember
-
-
-
-
Constructor Detail
-
Method
public Method(PClass owner, @Nullable java.lang.String docComment, Member.SourceLocation sourceLocation, java.util.Set<Modifier> modifiers, java.util.List<PObject> annotations, java.lang.String simpleName, java.util.List<TypeParameter> typeParameters, java.util.Map<java.lang.String,PType> parameters, PType returnType)
-
-
Method Detail
-
getTypeParameters
public java.util.List<TypeParameter> getTypeParameters()
-
getParameters
public java.util.Map<java.lang.String,PType> getParameters()
-
getReturnType
public PType getReturnType()
-
getInheritedDocComment
public @Nullable java.lang.String getInheritedDocComment()
Description copied from class:PClass.ClassMemberReturns 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.- Specified by:
getInheritedDocCommentin classPClass.ClassMember
-
-