Modifier and Type | Field and Description |
---|---|
public static final MethodKind | CLASS
The first argument is the Python type of the target. |
public static final MethodKind | INSTANCE
The first argument is self or a module. |
public static final MethodKind | STATIC
The method must be defined by a Java static method. |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public static MethodKind | |
public static MethodKind[] |
CLASS | back to summary |
---|---|
public static final MethodKind CLASS The first argument is the Python type of the target. The method must be defined either by a Java static method in which an initial type argument is declared. In a call from Python that uses dot notation, which is attribute lookup, the target object's type is used to find the method, and is bound to the first parameter. |
INSTANCE | back to summary |
---|---|
public static final MethodKind INSTANCE The first argument is self or a module. The method must be defined either by a Java instance method or by a static method in which an initial self or module argument is declared. In a call from Python that uses dot notation, which is attribute lookup, the target object (or module) is used to find the method, and is bound to the first parameter. |
STATIC | back to summary |
---|---|
public static final MethodKind STATIC The method must be defined by a Java static method. An initial self or module argument is not expected. (If the writer attempts to declare one it will simply be the first parameter.) In a call from Python that uses dot notation, which is attribute lookup, the target object (or its type) is used to find the method, but is not bound to the first parameter. |
MethodKind | back to summary |
---|---|
private MethodKind() |
valueOf | back to summary |
---|---|
public static MethodKind valueOf(String name) |
values | back to summary |
---|---|
public static MethodKind[] values() |