Class GeneratedTemplateSupport<T>

java.lang.Object
com.blackbuild.klum.ast.runtime.generated.GeneratedTemplateSupport<T>
Type Parameters:
T - the generated model type

public class GeneratedTemplateSupport<T> extends Object
Generated-code linkage for the model-package Template adapters emitted by the DSL transformation.

This is not a supported handwritten client API or general extension SPI. Generated schema classes may link this type; their model-package Foo_DSL.TemplateScope contract remains the public API.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Use Foo.Create.Template.With() for the matching DSL model type.
    Create(groovy.lang.Closure<?> configuration)
    Deprecated.
    Use Foo.Create.Template.With(configuration) for the matching DSL model type.
    Create(Map<String,?> configMap)
    Deprecated.
    Use Foo.Create.Template.With(configMap) for the matching DSL model type.
    Create(Map<String,?> configMap, groovy.lang.Closure<?> configuration)
    Deprecated.
    Use Foo.Create.Template.With(configMap, configuration) for the matching DSL model type.
    CreateFrom(File scriptFile)
    Deprecated.
    Use Foo.Create.Template.From(scriptFile) for the matching DSL model type.
    CreateFrom(File scriptFile, ClassLoader loader)
    Deprecated.
    Use Foo.Create.Template.From(scriptFile, loader) for the matching DSL model type.
    CreateFrom(URL scriptUrl)
    Deprecated.
    Use Foo.Create.Template.From(scriptUrl) for the matching DSL model type.
    CreateFrom(URL scriptUrl, ClassLoader loader)
    Deprecated.
    Use Foo.Create.Template.From(scriptUrl, loader) for the matching DSL model type.
    <C> C
    With(Map<String,?> template, groovy.lang.Closure<C> body)
     
    <C> C
    With(T template, groovy.lang.Closure<C> body)
     
    <C> C
    WithAll(List<Object> newTemplates, groovy.lang.Closure<C> body)
     
    <C> C
    WithAll(Map<Class<?>,Map<String,?>> newTemplates, groovy.lang.Closure<C> body)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GeneratedTemplateSupport

      public GeneratedTemplateSupport(Class<T> type)
  • Method Details

    • With

      public <C> C With(T template, groovy.lang.Closure<C> body)
    • With

      public <C> C With(Map<String,?> template, groovy.lang.Closure<C> body)
    • WithAll

      public <C> C WithAll(Map<Class<?>,Map<String,?>> newTemplates, groovy.lang.Closure<C> body)
    • WithAll

      public <C> C WithAll(List<Object> newTemplates, groovy.lang.Closure<C> body)
    • Create

      @Deprecated(since="4.0") public T Create()
      Deprecated.
      Use Foo.Create.Template.With() for the matching DSL model type.
    • Create

      @Deprecated(since="4.0") public T Create(Map<String,?> configMap, groovy.lang.Closure<?> configuration)
      Deprecated.
      Use Foo.Create.Template.With(configMap, configuration) for the matching DSL model type.
    • Create

      @Deprecated(since="4.0") public T Create(groovy.lang.Closure<?> configuration)
      Deprecated.
      Use Foo.Create.Template.With(configuration) for the matching DSL model type.
    • Create

      @Deprecated(since="4.0") public T Create(Map<String,?> configMap)
      Deprecated.
      Use Foo.Create.Template.With(configMap) for the matching DSL model type.
    • CreateFrom

      @Deprecated(since="4.0") public T CreateFrom(File scriptFile)
      Deprecated.
      Use Foo.Create.Template.From(scriptFile) for the matching DSL model type.
    • CreateFrom

      @Deprecated(since="4.0") public T CreateFrom(File scriptFile, ClassLoader loader)
      Deprecated.
      Use Foo.Create.Template.From(scriptFile, loader) for the matching DSL model type.
    • CreateFrom

      @Deprecated(since="4.0") public T CreateFrom(URL scriptUrl)
      Deprecated.
      Use Foo.Create.Template.From(scriptUrl) for the matching DSL model type.
    • CreateFrom

      @Deprecated(since="4.0") public T CreateFrom(URL scriptUrl, ClassLoader loader)
      Deprecated.
      Use Foo.Create.Template.From(scriptUrl, loader) for the matching DSL model type.