Helpers

flatgraph.codegen.Helpers
object Helpers

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Helpers.type

Members list

Value members

Concrete methods

def accessorName(neighborInfoForNode: NeighborInfoForNode): String
def defaultValueCheckImpl[A](memberName: String, default: Default[A]): String
def defaultValueImpl[A](default: Default[A]): String
def deriveCommonRootType(neighborNodeInfos: Set[AbstractNodeType]): Option[AbstractNodeType]
def docAnnotationMaybe(customStepDoc: Option[String]): String
def escapeIfKeyword(value: String): String
def escapeJava(src: String): String

escape things like quotes, backslashes, end of comment ('* /' without the space) etc.

escape things like quotes, backslashes, end of comment ('* /' without the space) etc.

Attributes

def findSharedRoot(nodeTypes: Set[AbstractNodeType]): Option[AbstractNodeType]

from the given node types, find one that is part of the complete type hierarchy of all other node types

from the given node types, find one that is part of the complete type hierarchy of all other node types

Attributes

def fullScalaType(neighborNode: AbstractNodeType, cardinality: Cardinality): String
def getCompleteType[A](property: Property[_]): String
def getCompleteType(containedNode: ContainedNode): String
def getCompleteType(cardinality: Cardinality, valueType: String): String
def isNodeBaseTrait(baseTraits: Seq[NodeBaseType], nodeName: String): Boolean

In theory there can be multiple candidates - we're just returning one of those for now. We want the results to be stable between different codegen runs, so we simply return the first in alphabetical order...

In theory there can be multiple candidates - we're just returning one of those for now. We want the results to be stable between different codegen runs, so we simply return the first in alphabetical order...

Attributes

def propertyAccessors(properties: Seq[Property[_]]): String
def propertyDefaultCases(properties: Seq[Property[_]]): String
def propertyDefaultValueImpl(propertyDefaultsPath: String, properties: Seq[Property[_]]): String
def propertyKeyDef(name: String, baseType: String, cardinality: Cardinality): String
def quote(string: String): String
def quoted(strings: Iterable[String]): Iterable[String]
def singularize(str: String): String
def snakeCase(camelCase: String): String
def typeFor[A](property: Property[A]): String
def typeFor(containedNode: ContainedNode): String

Concrete fields

val quotes: Char
val scalaReservedKeywords: Set[String]

obtained from repl via

obtained from repl via

:power
nme.keywords

Attributes