Package org.sonar.python.semantic.v2
Class FunctionTypeBuilder
java.lang.Object
org.sonar.python.semantic.v2.FunctionTypeBuilder
- All Implemented Interfaces:
TypeBuilder<FunctionType>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()fromFunctionDef(FunctionDef functionDef, String fullyQualifiedName, String fileId, TypeTable projectLevelTypeTable) withAsynchronous(boolean asynchronous) withAttributes(List<PythonType> attributes) withClassMethod(boolean classMethod) withDecorators(List<TypeWrapper> decorators) withDefinitionLocation(LocationInFile definitionLocation) withFullyQualifiedName(String fullyQualifiedName) withHasDecorators(boolean hasDecorators) withHasVariadicParameter(boolean hasVariadicParameter) withInstanceMethod(boolean instanceMethod) withOwner(PythonType owner) withParameters(List<ParameterV2> parameters) withReturnType(PythonType returnType) withReturnType(TypeWrapper returnType) withTypeOrigin(TypeOrigin typeOrigin)
-
Constructor Details
-
FunctionTypeBuilder
-
FunctionTypeBuilder
public FunctionTypeBuilder()
-
-
Method Details
-
fromFunctionDef
public FunctionTypeBuilder fromFunctionDef(FunctionDef functionDef, String fullyQualifiedName, @Nullable String fileId, TypeTable projectLevelTypeTable) -
withName
-
withFullyQualifiedName
-
withHasVariadicParameter
-
withAttributes
-
withParameters
-
withDecorators
-
withAsynchronous
-
withHasDecorators
-
withInstanceMethod
-
withClassMethod
-
withReturnType
-
withReturnType
-
withTypeOrigin
-
withDefinitionLocation
- Specified by:
withDefinitionLocationin interfaceTypeBuilder<FunctionType>
-
build
- Specified by:
buildin interfaceTypeBuilder<FunctionType>
-
withOwner
-