Package org.pkl.core.ast.member
Class ClassMethod
- java.lang.Object
-
- org.pkl.core.ast.member.Member
-
- org.pkl.core.ast.member.ClassMember
-
- org.pkl.core.ast.member.ClassMethod
-
public final class ClassMethod 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 ClassMethod(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, java.util.List<TypeParameter> typeParameters, @Nullable java.lang.String deprecation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PClass.Methodexport(PClass owner)java.lang.StringgetCallSignature()For use in user-facing messages.com.oracle.truffle.api.CallTargetgetCallTarget()com.oracle.truffle.api.CallTargetgetCallTarget(com.oracle.truffle.api.source.SourceSection callSite)VmTypedgetMirror()VmSetgetModifierMirrors()intgetParameterCount()VmMapgetParameterMirrors()VmTypedgetReturnTypeMirror()@Nullable TypeNodegetReturnTypeNode()VmListgetTypeParameterMirrors()voidinitFunctionNode(FunctionNode functionNode)-
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
-
ClassMethod
public ClassMethod(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, java.util.List<TypeParameter> typeParameters, @Nullable java.lang.String deprecation)
-
-
Method Detail
-
initFunctionNode
public void initFunctionNode(FunctionNode functionNode)
-
getCallTarget
public com.oracle.truffle.api.CallTarget getCallTarget()
-
getCallTarget
public com.oracle.truffle.api.CallTarget getCallTarget(com.oracle.truffle.api.source.SourceSection callSite)
-
getParameterCount
public int getParameterCount()
-
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()
-
getTypeParameterMirrors
public VmList getTypeParameterMirrors()
-
getParameterMirrors
public VmMap getParameterMirrors()
-
getReturnTypeMirror
public VmTyped getReturnTypeMirror()
-
export
public PClass.Method export(PClass owner)
-
-