allow each instance of PyCallableType to tell whether it's actually callable or not; distinguish class definition and class instance for Java class types; correctly treat Java constructors as callable (PY-4269)

This commit is contained in:
Dmitry Jemerov
2013-02-27 16:09:37 +01:00
parent f4ad359267
commit 066ddf137d
8 changed files with 74 additions and 20 deletions
@@ -11,6 +11,11 @@ import org.jetbrains.annotations.Nullable;
* @author yole
*/
public interface PyCallableType extends PyType {
/**
* Returns true if the type is callable.
*/
boolean isCallable();
/**
* Returns the type which is the result of calling an instance of this type.
*