object G8
- Alphabetic
- By Inheritance
- G8
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
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.
-
type
OrderedProperties = List[(String, String)]
Properties in the order they were created/defined
-
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
- implicit class RichFile extends AnyRef
- class STErrorHandler extends STErrorListener
-
type
UnresolvedProperties = List[(String, ValueF)]
Properties which have not been resolved.
Properties which have not been resolved. I.e., ValueF() has not been evaluated
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Param: Regex
- def addRandomId(s: String): String
- def apply(in: File, out: File, base: File, parameters: Map[String, String]): Seq[File]
- def apply(fromMapping: Seq[(File, String)], toPath: File, parameters: Map[String, String]): Seq[File]
- def applyTemplate(default: String, resolved: ResolvedProperties): String
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def consoleParams(defaults: UnresolvedProperties, arguments: Seq[String]): Option[Map[String, String]]
- def copyScaffolds(sf: File, output: File): Unit
- def decapitalize(s: String): String
- val defaultTemplatePaths: List[Path]
- def dotReverse(s: String): String
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def expandPath(relative: String, toPath: File, parameters: Map[String, String]): Option[File]
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def fromDirectory(templateDirectory: File, workingDirectory: File, arguments: Seq[String], forceOverwrite: Boolean, outputDirectory: Option[File]): Either[String, String]
- def fromDirectoryRaw(templateDirectory: File, outputDirectory: File, arguments: Seq[String], forceOverwrite: Boolean): Either[String, String]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hyphenate(s: String): String
- def interact(params: UnresolvedProperties): ResolvedProperties
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lowerCamel(s: String): String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def normalize(s: String): String
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def packageDir(s: String): String
- def packageNaming(s: String): String
- def path(path: String): Path
- def readProps(stm: InputStream): OrderedProperties
- def scalaIdentifier(s: String): String
- def snakeCase(s: String): String
- def space(s: String): String
- def startCase(s: String): String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
templateFiles(root: File, baseDirectory: File): Stream[File]
Extract template files under the first matching relative templatePaths under the baseDirectory.
-
def
templateRoot(baseDirectory: File, templatePaths: List[Path]): File
Select the root template directory from the given relative paths.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
transformProps(props: OrderedProperties): Either[String, OrderedProperties]
transforms any maven() property operations to the latest version number reported by that service.
- def upperCamel(s: String): String
- def verbatim(file: File, parameters: Map[String, String], base: File = new File(".")): Boolean
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def wordOnly(s: String): String
- def write(out: File, template: String, parameters: Map[String, String]): Unit
- def write(in: File, out: File, parameters: Map[String, String]): Unit
- def writeTemplates(tmpl: File, templates: Iterable[File], parameters: Map[String, String], base: File, forceOverwrite: Boolean): Either[String, String]
- object NullInputException extends Throwable with Product with Serializable
- object ResolvedProperties
- object UnresolvedProperties