object G8

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

Type Members

  1. case class DefaultValueF(default: String) extends ValueF with Product with Serializable

    The ValueF implementation for handling default properties.

    The ValueF implementation for handling default properties. It performs formatted substitution on any properties found.

  2. type OrderedProperties = List[(String, String)]

    Properties in the order they were created/defined

  3. type ResolvedProperties = Map[String, String]

    G8 template properties which have been fully resolved, i.e.

    G8 template properties which have been fully resolved, i.e. defaults replaced by user input, ready for insertion into template

  4. implicit class RichFile extends AnyRef
  5. class STErrorHandler extends STErrorListener
  6. type UnresolvedProperties = List[(String, ValueF)]

    Properties which have not been resolved.

    Properties which have not been resolved. I.e., ValueF() has not been evaluated

  7. type ValueF = (ResolvedProperties) => String

    A function which will return the resolved value of a property given the properties resolved thus far.

    A function which will return the resolved value of a property given the properties resolved thus far. This is a bit more general than was needed for resolving "dynamic defaults". I did it this way so it's possible to have other ValueF definitions which perform arbitrary logic given previously defined properties.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val Param: Regex
  5. def addRandomId(s: String): String
  6. def apply(in: File, out: File, base: File, parameters: Map[String, String]): Seq[File]
  7. def apply(fromMapping: Seq[(File, String)], toPath: File, parameters: Map[String, String]): Seq[File]
  8. def applyTemplate(default: String, resolved: ResolvedProperties): String
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. def consoleParams(defaults: UnresolvedProperties, arguments: Seq[String]): Option[Map[String, String]]
  12. def copyScaffolds(sf: File, output: File): Unit
  13. def decapitalize(s: String): String
  14. val defaultTemplatePaths: List[Path]
  15. def dotReverse(s: String): String
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. def expandPath(relative: String, toPath: File, parameters: Map[String, String]): Option[File]
  19. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  20. def fromDirectory(templateDirectory: File, workingDirectory: File, arguments: Seq[String], forceOverwrite: Boolean, outputDirectory: Option[File]): Either[String, String]
  21. def fromDirectoryRaw(templateDirectory: File, outputDirectory: File, arguments: Seq[String], forceOverwrite: Boolean): Either[String, String]
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. def hyphenate(s: String): String
  25. def interact(params: UnresolvedProperties): ResolvedProperties
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. def lowerCamel(s: String): String
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def normalize(s: String): String
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. def packageDir(s: String): String
  33. def packageNaming(s: String): String
  34. def path(path: String): Path
  35. def readProps(stm: InputStream): OrderedProperties
  36. def scalaIdentifier(s: String): String
  37. def snakeCase(s: String): String
  38. def space(s: String): String
  39. def startCase(s: String): String
  40. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  41. def templateFiles(root: File, baseDirectory: File): Stream[File]

    Extract template files under the first matching relative templatePaths under the baseDirectory.

  42. def templateRoot(baseDirectory: File, templatePaths: List[Path]): File

    Select the root template directory from the given relative paths.

  43. def toString(): String
    Definition Classes
    AnyRef → Any
  44. def transformProps(props: OrderedProperties): Either[String, OrderedProperties]

    transforms any maven() property operations to the latest version number reported by that service.

  45. def upperCamel(s: String): String
  46. def verbatim(file: File, parameters: Map[String, String], base: File = new File(".")): Boolean
  47. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  48. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  49. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  50. def wordOnly(s: String): String
  51. def write(out: File, template: String, parameters: Map[String, String]): Unit
  52. def write(in: File, out: File, parameters: Map[String, String]): Unit
  53. def writeTemplates(tmpl: File, templates: Iterable[File], parameters: Map[String, String], base: File, forceOverwrite: Boolean): Either[String, String]
  54. case object NullInputException extends Throwable with Product with Serializable
  55. object ResolvedProperties
  56. object UnresolvedProperties

Inherited from AnyRef

Inherited from Any

Ungrouped