Class ObjectAPI::CallableValue

Class representing callables in the Python program Callables include Python functions, built-in functions and bound-methods, but not classes.

Direct supertypes

Indirect supertypes

Known direct subtypes

Predicates

getArgumentForCall

Gets the argument corresponding to the `n’th parameter node of this callable.

getNamedArgumentForCall

Gets the argument corresponding to the named parameter node of this callable.

getParameter

Gets the nth parameter node of this callable.

getParameterByName

Gets the named parameter node of this callable.

getScope

Gets the scope for this function, provided that it is a Python function.

neverReturns

Holds if this callable never returns once called. For example, sys.exit

Inherited predicates

attr

Gets a Value that represents the attribute name of this object.

from Value
getACall

Gets a call to this object

from Value
getACall

Gets a call to this object with the given caller context.

from Value
getAReference

Gets a ControlFlowNode that refers to this object.

from Value
getClass

Gets the class of this object. Strictly, the Value representing the class of the objects represented by this Value.

from Value
getName

Gets the name of this value, if it has one. Note this is the innate name of the object, not necessarily all the names by which it can be called.

from Value
hasLocationInfofrom Value
isBuiltin

Holds if this value is builtin. Applies to built-in functions and methods, but also integers and strings.

from Value
toStringfrom Value

Charpred