DomainClassesGenerator

flatgraph.codegen.DomainClassesGenerator
See theDomainClassesGenerator companion object

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Classlikes

implicit class ArrayBufferCompat[A](buffer: ArrayBuffer[A])

for scala3 api compat

for scala3 api compat

Attributes

Supertypes
class Object
trait Matchable
class Any
implicit class BuilderCompat[A, To](buffer: Builder[A, To])

for scala3 api compat

for scala3 api compat

Attributes

Supertypes
class Object
trait Matchable
class Any
implicit class StringHelper(s: String)

Useful string extensions to avoid Scala version incompatible interpolations.

Useful string extensions to avoid Scala version incompatible interpolations.

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def classNameToBase(className: String): String
def edgeNeighborToMap(xs: Set[(String, String)]): Map[String, Set[String]]
def generatePropertyTraversals(property: Property[_], propertyId: Int): String
def generateRootTypesTraversals(schema: Schema): String

Generate accessors for all edge types on all Traversals for each node type. Analogous to the steps directly on StoredNode

Generate accessors for all edge types on all Traversals for each node type. Analogous to the steps directly on StoredNode

Attributes

def neighborMapping(x: AdjacentNode): Set[(String, String)]
def run(outputDir: Path): Seq[Path]
def typeForProperty(p: Property[_]): String
def unpackDefault(typ: ValueType[_], default: Default[_]): String
def unpackTypeBoxed(tpe: ValueType[_], isStored: Boolean): String
def unpackTypeUnboxed(tpe: ValueType[_], isStored: Boolean, raised: Boolean): String
def withScalafmtConfig(path: Path): DomainClassesGenerator.this.type

replace entire default scalafmt config (from Formatter.defaultScalafmtConfig) with custom config

replace entire default scalafmt config (from Formatter.defaultScalafmtConfig) with custom config

Attributes

def writeNeighborAccessors(outputDir: Path, basePackage: String): Unit

Concrete fields

Implicits

Implicits

final implicit def ArrayBufferCompat[A](buffer: ArrayBuffer[A]): ArrayBufferCompat[A]

for scala3 api compat

for scala3 api compat

Attributes

final implicit def BuilderCompat[A, To](buffer: Builder[A, To]): BuilderCompat[A, To]

for scala3 api compat

for scala3 api compat

Attributes

final implicit def StringHelper(s: String): StringHelper

Useful string extensions to avoid Scala version incompatible interpolations.

Useful string extensions to avoid Scala version incompatible interpolations.

Attributes