Record Class AsyncFunctionDef
java.lang.Object
java.lang.Record
io.micronaut.python.processing.visitor.AsyncFunctionDef
- Record Components:
name- The name of the async function.args- The arguments.decoratorList- The decorators.returns- The return annotation.typeComment- The type comment.typeParams- The type parameters.
public record AsyncFunctionDef(String name, Object args, List<FunctionDef> decoratorList, Object returns, String typeComment, List<TypeVar> typeParams)
extends Record
An AsyncFunctionDef node represents an asynchronous function definition.
AsyncFunctionDef(identifier name, arguments args, list[stmt] body, list[expr] decorator_list, expr | None returns, string | None type_comment, list[type_param] type_params)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncFunctionDef(String name, Object args, List<FunctionDef> decoratorList, Object returns, String typeComment, List<TypeVar> typeParams) Creates an instance of aAsyncFunctionDefrecord class. -
Method Summary
Modifier and TypeMethodDescriptionargs()Returns the value of theargsrecord component.Returns the value of thedecoratorListrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.returns()Returns the value of thereturnsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeCommentrecord component.Returns the value of thetypeParamsrecord component.
-
Constructor Details
-
AsyncFunctionDef
public AsyncFunctionDef(String name, Object args, List<FunctionDef> decoratorList, Object returns, String typeComment, List<TypeVar> typeParams) Creates an instance of aAsyncFunctionDefrecord class.- Parameters:
name- the value for thenamerecord componentargs- the value for theargsrecord componentdecoratorList- the value for thedecoratorListrecord componentreturns- the value for thereturnsrecord componenttypeComment- the value for thetypeCommentrecord componenttypeParams- the value for thetypeParamsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
-
args
-
decoratorList
Returns the value of thedecoratorListrecord component.- Returns:
- the value of the
decoratorListrecord component
-
returns
-
typeComment
Returns the value of thetypeCommentrecord component.- Returns:
- the value of the
typeCommentrecord component
-
typeParams
Returns the value of thetypeParamsrecord component.- Returns:
- the value of the
typeParamsrecord component
-