Class/Object

org.clapper.scalasti

STGroupFile

Related Docs: object STGroupFile | package scalasti

Permalink

class STGroupFile extends STGroup

STGroupFile wraps the StringTemplate API's STGroupFile class. An STGroupFile object reads a template group from a file. See the StringTemplate API documentation for details. Since STGroupFile a subclass of STGroup, all the methods on the parent class are available on this one. This class cannot be instantiated directly; use the apply() methods on the companion object.

Linear Supertypes
STGroup, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. STGroupFile
  2. STGroup
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def fileName: String

    Permalink

    Get the group file name.

    Get the group file name.

    returns

    the file name

    Definition Classes
    STGroup
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. def instanceOf(templateName: String): Try[ST]

    Permalink

    Get an instance of a template defined in group.

    Get an instance of a template defined in group.

    templateName

    the name of the template

    returns

    Success(ST) if the template was found and loaded. Failure(exception) if the template could not be demand-loaded.

    Definition Classes
    STGroup
  13. def isDefined(name: String): Boolean

    Permalink

    Determine whether a named template is defined in this group.

    Determine whether a named template is defined in this group. The names must be fully-qualified template paths (e.g., "/g1/name")

    name

    the template name

    returns

    true if defined, false if not

    Definition Classes
    STGroup
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def load(): Try[Unit]

    Permalink

    Force a load.

    Force a load. Templates are normally loaded on demand; this method attempts to load them up front. Note: Even though this method attempts to detect failure, the underlying StringTemplate method seems to trap load errors and display them on standard output, without passing them up the stack. Testing for errors might not return what you expect.

    returns

    Success(Unit) on success. Failure(exception) on load failure.

    Definition Classes
    STGroup
  16. def name: String

    Permalink

    Get the group's name.

    Get the group's name.

    returns

    the group name

    Definition Classes
    STGroup
  17. def nativeGroup: stringtemplate.v4.STGroup

    Permalink

    Get the underlying Java StringTemplate STGroup object.

    Get the underlying Java StringTemplate STGroup object.

    returns

    the underlying STGroup

    Definition Classes
    STGroup
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def registerRenderer[T](r: AttributeRenderer[T])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Unit

    Permalink

    Register a renderer for a particular type.

    Register a renderer for a particular type. When the underlying StringTemplate API attempts to render a template, it'll use this renderer when it encounters values of this type.

    NOTE: By default, Scalasti automatically wraps Scala objects in dynamically generated Java Beans when they're added to templates, because the StringTemplate API uses Java Bean semantics to access object fields. For this reason, you cannot use an AttributeRenderer unless you add the values it is to render as raw objects. See the ST.add() method for details.

    Definition Classes
    STGroup
    See also

    ST.add

  22. def rootDirURL: URL

    Permalink

    Get the root directory, if this is the group directory, or the group file, if this is a group file.

    Get the root directory, if this is the group directory, or the group file, if this is a group file.

    returns

    the root

    Definition Classes
    STGroup
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def templateNames: Set[String]

    Permalink

    Get the template names defined by the group.

    Get the template names defined by the group.

    returns

    a set of the template names supplied by this group

    Definition Classes
    STGroup
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. def unload(): Unit

    Permalink

    Force an unload.

    Force an unload.

    Definition Classes
    STGroup
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from STGroup

Inherited from AnyRef

Inherited from Any

Ungrouped