object Helpers
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Helpers
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- def accessorName(neighborInfoForNode: NeighborInfoForNode): String
- def camelCase(snakeCase: String): String
- def camelCaseCaps(snakeCase: String): String
- def completeTypeHierarchy(node: AbstractNodeType): Seq[AbstractNodeType]
- 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.
-
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
- def fullScalaType(neighborNode: AbstractNodeType, cardinality: Cardinality): String
- def getCompleteType(cardinality: Cardinality, valueType: String): String
- def getCompleteType(containedNode: ContainedNode): String
- def getCompleteType[A](property: Property[_]): String
- def isNodeBaseTrait(baseTraits: Seq[NodeBaseType], nodeName: String): Boolean
-
def
lowestCommonAncestor(nodes: Set[AbstractNodeType]): Option[AbstractNodeType]
in theory there can be multiple candidates - we're just returning one of those for now
- def propertyAccessors(properties: Seq[Property[_]]): String
- def propertyDefaultCases(properties: Seq[Property[_]]): String
- def propertyDefaultValueImpl(propertyDefaultsPath: String, properties: Seq[Property[_]]): String
- val propertyErrorRegisterImpl: String
- def propertyKeyDef(name: String, baseType: String, cardinality: Cardinality): String
- def quote(string: String): String
- def quoted(strings: Iterable[String]): Iterable[String]
- val quotes: Char
-
val
scalaReservedKeywords: Set[String]
obtained from repl via
obtained from repl via
:power nme.keywords
- 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(containedNode: ContainedNode): String
- def typeFor[A](property: Property[A]): String