CodegenUtils

folap.modeldefinition.CodegenUtils
object CodegenUtils

This object contains utility functions for the DSL

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def indent(input: String, spaces: Int): String

Indent a string by a given amount of spaces

Indent a string by a given amount of spaces

Value parameters

input

The string to be indented

spaces

The number of spaces to add to the left of each line

Attributes

Returns

The indented string

def sanitise(input: String): String

Transform a string into a valid class name

Transform a string into a valid class name

Value parameters

input

the untrusted input

Attributes

Returns

the PascalCase version of that string

def toCamelCase(input: String): String

Transform a PascalCase string to camelCase

Transform a PascalCase string to camelCase

Value parameters

input

The string to be converted

Attributes

Returns

The string as camelCase