Method class

Inheritance
Implemented types
Annotations
  • @JsonSerializable(createToJson: false)

Constructors

Method({List<Annotation> annotations = const [], JavaDocComment? javadoc, Set<String> modifiers = const {}, required String name, String? descriptor, List<TypeParam> typeParams = const [], List<Param> params = const [], required TypeUsage returnType})
Method.fromJson(Map<String, dynamic> json)
factory

Properties

annotations List<Annotation>
final
asyncReturnType TypeUsage?
The actual return type when the method is a Kotlin's suspend fun.
getter/setter pair
classDecl ClassDecl
The ClassDecl where this method is defined.
getter/setter pairoverride-getter
descriptor String?
Can be used to match with KotlinFunction's descriptor.
getter/setter pair
finalName String
Populated by Renamer.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isCtor bool
no setter
isFinal bool
no setterinherited
isOverridden bool
getter/setter pair
isProtected bool
no setterinherited
isPublic bool
no setterinherited
isStatic bool
no setterinherited
javadoc JavaDocComment?
final
javaSig String
latefinal
modifiers Set<String>
final
name String
final
params List<Param>
getter/setter pair
returnType TypeUsage
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeParams List<TypeParam>
final

Methods

accept<R>(Visitor<Method, R> v) → R
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited