Class FunctionType
java.lang.Object
org.sonar.plugins.python.api.types.v2.FunctionType
- All Implemented Interfaces:
PythonType
FunctionType
-
Field Summary
Fields inherited from interface org.sonar.plugins.python.api.types.v2.PythonType
UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionFunctionType(String name, String fullyQualifiedName, List<PythonType> attributes, List<ParameterV2> parameters, List<TypeWrapper> decorators, TypeWrapper returnType, TypeOrigin typeOrigin, boolean isAsynchronous, boolean hasDecorators, boolean isInstanceMethod, boolean hasVariadicParameter, PythonType owner, LocationInFile locationInFile) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.sonar.plugins.python.api.types.v2.PythonType
hasMember, instanceDisplayName, isCompatibleWith, key, resolveMember, typeSource, unwrappedType
-
Constructor Details
-
FunctionType
public FunctionType(String name, String fullyQualifiedName, List<PythonType> attributes, List<ParameterV2> parameters, List<TypeWrapper> decorators, TypeWrapper returnType, TypeOrigin typeOrigin, boolean isAsynchronous, boolean hasDecorators, boolean isInstanceMethod, boolean hasVariadicParameter, @Nullable PythonType owner, @Nullable LocationInFile locationInFile)
-
-
Method Details
-
displayName
- Specified by:
displayNamein interfacePythonType
-
definitionLocation
- Specified by:
definitionLocationin interfacePythonType
-
toString
-
name
- Specified by:
namein interfacePythonType
-
attributes
-
parameters
-
returnType
-
isAsynchronous
public boolean isAsynchronous() -
hasDecorators
public boolean hasDecorators() -
decorators
-
isInstanceMethod
public boolean isInstanceMethod() -
hasVariadicParameter
public boolean hasVariadicParameter() -
owner
-
typeOrigin
-
fullyQualifiedName
-