ClassDecl class

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

Constructors

ClassDecl({List<Annotation> annotations = const [], JavaDocComment? javadoc, required DeclKind declKind, Set<String> modifiers = const {}, required String binaryName, List<TypeParam> typeParams = const [], List<Method> methods = const [], List<Field> fields = const [], TypeUsage? superclass, List<TypeUsage> interfaces = const [], bool hasStaticInit = false, bool hasInstanceInit = false, List<String>? values, KotlinClass? kotlinClass})
ClassDecl.fromJson(Map<String, dynamic> json)
factory

Properties

allTypeParams List<TypeParam>
Type parameters including the ones from its ancestors
getter/setter pair
annotations List<Annotation>
final
binaryName String
final
classDecl ClassDecl
no setteroverride
declKind DeclKind
final
fields List<Field>
getter/setter pair
finalName String
Final name of this class.
latefinal
hashCode int
The hash code for this object.
no setterinherited
hasInstanceInit bool
final
hasStaticInit bool
final
interfaces List<TypeUsage>
final
internalName String
no setter
isFinal bool
no setterinherited
isNested bool
latefinal
isObject bool
no setter
isProtected bool
no setterinherited
isPublic bool
no setterinherited
isStatic bool
no setterinherited
javadoc JavaDocComment?
final
kotlinClass KotlinClass?
final
methodNumsAfterRenaming Map<String, int>
The numeric suffix of the methods.
latefinal
methods List<Method>
getter/setter pair
modifiers Set<String>
final
name String
no setteroverride
packageName String
no setter
parent ClassDecl?
Parent's ClassDecl obtained from parentName.
latefinal
parentName String?
latefinal
path String
The path which this class is generated in.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signature String
no setter
superclass TypeUsage?
Will default to java.lang.Object if null by Linker.
getter/setter pair
superCount int
The number of super classes this type has.
latefinal
typeClassName String
Name of the type class.
latefinal
typeParams List<TypeParam>
getter/setter pair
uniqueName String
Unique name obtained by renaming conflicting names with a number.
latefinal
values List<String>?
Contains enum constant names if class is an enum, as obtained by .values() method in Java.
final

Methods

accept<R>(Visitor<ClassDecl, 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.
override

Operators

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