Top Description Fields Constructors Methods
org.python.expose.generate

public Class InstanceMethodExposer

extends MethodExposer
Class Inheritance
Imports
org.objectweb.asm.Label, .Type, org.python.core.PyBuiltinMethod, .PyBuiltinMethodNarrow, org.python.expose.ExposedMethod, .MethodType

Generates a class to call a given method with the ExposedMethod annotation as a method on a builtin Python type.

Field Summary

Modifier and TypeField and Description
pack-priv MethodType
Inherited from org.python.expose.generate.MethodExposer:
argsasNamesdefaultsdocmethodNameonTypeprefixreturnTypetypeName

Constructor Summary

AccessConstructor and Description
public
InstanceMethodExposer(Type onType, int access, String methodName, String desc, String typeName)

public
InstanceMethodExposer(Type onType, int access, String methodName, String desc, String typeName, String[] asNames, String[] defaults, MethodType type, String doc)

Method Summary

Modifier and TypeMethod and Description
private void
checkBinaryResult()

Throw NotImplemented if a binary method returned null.

private void
checkCmpResult()

Throw a type error if a cmp method returned -2.

protected void
private static boolean
isWide(String methDescriptor)

protected void
Inherited from org.python.expose.generate.MethodExposer:
generategetNamesisWideloadSelfAndThreadStateloadThreadStateneedsThreadStatethrowInvalid

Field Detail

typeback to summary
pack-priv MethodType type

Constructor Detail

InstanceMethodExposerback to summary
public InstanceMethodExposer(Type onType, int access, String methodName, String desc, String typeName)
InstanceMethodExposerback to summary
public InstanceMethodExposer(Type onType, int access, String methodName, String desc, String typeName, String[] asNames, String[] defaults, MethodType type, String doc)

Method Detail

checkBinaryResultback to summary
private void checkBinaryResult()

Throw NotImplemented if a binary method returned null.

checkCmpResultback to summary
private void checkCmpResult()

Throw a type error if a cmp method returned -2.

checkSelfback to summary
protected void checkSelf()

Implements abstract org.python.expose.generate.MethodExposer.checkSelf.

isWideback to summary
private static boolean isWide(String methDescriptor)
makeCallback to summary
protected void makeCall()

Implements abstract org.python.expose.generate.MethodExposer.makeCall.