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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala