Helpers

object Helpers
class Object
trait Matchable
class Any
Helpers.type

Value members

Concrete methods

def accessorName(neighborInfoForNode: NeighborInfoForNode): String
def camelCase(snakeCase: String): String
def camelCaseCaps(snakeCase: String): String
def defaultValueCheckImpl[A](memberName: String, default: Default[A]): String
def defaultValueImpl[A](default: Default[A]): String
def deriveCommonRootType(neighborNodeInfos: Set[AbstractNodeType]): String
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.

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

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

in theory there can be multiple candidates - we're just returning one of those for now

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

Converts from camelCase to snake_case e.g.: camelCase => camel_case

Converts from camelCase to snake_case e.g.: camelCase => camel_case

copy pasted from https://gist.github.com/sidharthkuruvila/3154845#gistcomment-2622928

def stringToOption(s: String): Option[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