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

Value Members

  1. def camelCase(snakeCase: String): String
  2. def camelCaseCaps(snakeCase: String): String
  3. def completeTypeHierarchy(node: AbstractNodeType): Seq[AbstractNodeType]
  4. def defaultValueCheckImpl[A](memberName: String, default: Default[A]): String
  5. def defaultValueImpl[A](default: Default[A]): String
  6. def deriveCommonRootType(neighborNodeInfos: Set[AbstractNodeType]): String
  7. def escapeIfKeyword(value: String): String
  8. 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

  9. def fullScalaType(neighborNode: AbstractNodeType, cardinality: Cardinality): String
  10. def getCompleteType(containedNode: ContainedNode): String
  11. def getCompleteType[A](property: schema.Property[_]): String
  12. def isNodeBaseTrait(baseTraits: Seq[NodeBaseType], nodeName: String): Boolean
  13. def lowestCommonAncestor(nodes: Set[AbstractNodeType]): Option[AbstractNodeType]

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

  14. def propertyDefaultCases(properties: Seq[schema.Property[_]]): String
  15. def propertyDefaultValueImpl(properties: Seq[schema.Property[_]]): String
  16. val propertyErrorRegisterImpl: String
  17. def propertyKeyDef(name: String, baseType: String, cardinality: Cardinality): String
  18. def quote(string: String): String
  19. def quoted(strings: Iterable[String]): Iterable[String]
  20. val scalaReservedKeywords: Set[String]

    obtained from repl via

    obtained from repl via

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

  23. def stringToOption(s: String): Option[String]
  24. def typeFor[A](valueType: ValueType[A]): String