AbstractClass
zio.blocks.codegen.ir.AbstractClass
final case class AbstractClass(name: String, fields: List[Field] = ..., typeParams: List[TypeParam] = ..., extendsTypes: List[TypeRef] = ..., members: List[ObjectMember] = ..., annotations: List[Annotation] = ..., companion: Option[CompanionObject] = ..., doc: Option[String] = ..., isSealed: Boolean = ...) extends TypeDefinition
Represents a Scala abstract class in the IR.
Value parameters
- annotations
-
Annotations on the abstract class (defaults to empty list)
- companion
-
Optional companion object (defaults to None)
- doc
-
Optional documentation (defaults to None)
- extendsTypes
-
Types that this abstract class extends (defaults to empty list)
- fields
-
The fields (constructor parameters) of the abstract class
- members
-
Members defined within the class body (defaults to empty list)
- name
-
The name of the abstract class
- typeParams
-
Type parameters for generic abstract classes (defaults to empty list)
Attributes
- Example
-
val entity = AbstractClass( "Entity", fields = List(Field("id", TypeRef.Long)) ) - Source
- TypeDefinition.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeDefinitionclass Objecttrait Matchableclass Any
Members list
In this article