Packages

object Helpers

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Helpers
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def accessorName(neighborInfoForNode: NeighborInfoForNode): String
  2. def camelCase(snakeCase: String): String
  3. def camelCaseCaps(snakeCase: String): String
  4. def completeTypeHierarchy(node: AbstractNodeType): Seq[AbstractNodeType]
  5. def defaultValueCheckImpl[A](memberName: String, default: Default[A]): String
  6. def defaultValueImpl[A](default: Default[A]): String
  7. def deriveCommonRootType(neighborNodeInfos: Set[AbstractNodeType]): Option[AbstractNodeType]
  8. def docAnnotationMaybe(customStepDoc: Option[String]): String
  9. def escapeIfKeyword(value: String): String
  10. def escapeJava(src: String): String

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

  11. 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

  12. def fullScalaType(neighborNode: AbstractNodeType, cardinality: Cardinality): String
  13. def getCompleteType(cardinality: Cardinality, valueType: String): String
  14. def getCompleteType(containedNode: ContainedNode): String
  15. def getCompleteType[A](property: Property[_]): String
  16. def isNodeBaseTrait(baseTraits: Seq[NodeBaseType], nodeName: String): Boolean
  17. def lowestCommonAncestor(nodes: Set[AbstractNodeType]): Option[AbstractNodeType]

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

  18. def propertyAccessors(properties: Seq[Property[_]]): String
  19. def propertyDefaultCases(properties: Seq[Property[_]]): String
  20. def propertyDefaultValueImpl(propertyDefaultsPath: String, properties: Seq[Property[_]]): String
  21. val propertyErrorRegisterImpl: String
  22. def propertyKeyDef(name: String, baseType: String, cardinality: Cardinality): String
  23. def quote(string: String): String
  24. def quoted(strings: Iterable[String]): Iterable[String]
  25. val quotes: Char
  26. val scalaReservedKeywords: Set[String]

    obtained from repl via

    obtained from repl via

    :power
    nme.keywords
  27. def singularize(str: String): String
  28. 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

  29. def stringToOption(s: String): Option[String]
  30. def typeFor(containedNode: ContainedNode): String
  31. def typeFor[A](property: Property[A]): String