public class ConsoleOutTemplate extends OnlyOneBodyGapTemplateBase
The text into which {@.codelet} output (the example-code's source) is placed.
Codelet: {@.codelet}: Template: Gap namesThe only required gap is "body", which is where the fully-processed source-code is placed.
In addition to any user-extra gaps, the {@.codelet} template also provides for the following "default" optional gaps:
| Name | Description |
command_line_params |
Parameters as passed to the example code's main function. |
simple_class_name* |
The example code's non-fully-qualified class name. |
fq_class_name* |
The example code's fully-qualified class name. |
package* |
The example code's package name. |
aliteralmind __DASH__ github __AT__ yahoo __DOT__ com), dual-licensed under the LGPL (version 3.0 or later) or the ASL (version 2.0). See source code for details. http://codelet.aliteralmind.com, https://github.com/aliteralmind/codelet| Modifier and Type | Field and Description |
|---|---|
static CodeletGap |
GAP_COMMAND_LINE_PARAMS
Parameters as passed to the example code's main function--Name is
"command_line_params". |
BODY_GAP_NAME| Constructor and Description |
|---|
ConsoleOutTemplate(ConsoleOutTemplate to_copy,
Appendable debugDest_ifNonNull) |
ConsoleOutTemplate(ConsoleOutTemplate to_copy,
FeatherTemplate template,
String tmpl_path)
Create the second or subsequent instance.
|
ConsoleOutTemplate(FeatherTemplate template,
String tmpl_path,
UserExtraGapGetter userExtra_getter)
Create the first instance.
|
| Modifier and Type | Method and Description |
|---|---|
ConsoleOutTemplate |
fillBody(String fully_processed) |
ConsoleOutTemplate |
getObjectCopy(Appendable debugDest_ifNonNull)
Duplicate this template.
|
static ConsoleOutTemplate |
newFromPathAndUserExtraGaps(String path,
String path_name,
UserExtraGapGetter userExtra_getter) |
fillBodyGap, newTemplateFromPathaddCustomGaps, fillBodyGap, getGapCount, getPath, getRendered, getTemplate, getType, newGapMapFromArray, newTemplateFromPath, setDebug, setDebugOnappendToString, debug, debugln, getDebugApbl, getDebugAptr, getObjectCopy, isDebugOn, onIfNonNull, toString, zsetDebugDB, zsetDebugOnDBpublic static final CodeletGap GAP_COMMAND_LINE_PARAMS
Parameters as passed to the example code's main function--Name is "command_line_params".
Gap is filled with
................
public ConsoleOutTemplate(FeatherTemplate template, String tmpl_path, UserExtraGapGetter userExtra_getter)
Create the first instance.
Equal to
super(CodeletType.SOURCE_CODE, template, tmpl_path, new CodeletGap[] {SourceCodeTemplate.GAP_PACKAGE, SourceCodeTemplate.GAP_SIMPLE_CLASS_NAME, SourceCodeTemplate.GAP_FQ_CLASS_NAME,GAP_COMMAND_LINE_PARAMS}, userExtra_getter)
public ConsoleOutTemplate(ConsoleOutTemplate to_copy, FeatherTemplate template, String tmpl_path)
public ConsoleOutTemplate(ConsoleOutTemplate to_copy, Appendable debugDest_ifNonNull)
public ConsoleOutTemplate fillBody(String fully_processed)
public ConsoleOutTemplate getObjectCopy(Appendable debugDest_ifNonNull)
Duplicate this template.
getObjectCopy in class CodeletTemplateBase(new ConsoleOutTemplate(this, debugDest_ifNonNull))public static final ConsoleOutTemplate newFromPathAndUserExtraGaps(String path, String path_name, UserExtraGapGetter userExtra_getter)
Copyright 2014, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.
https://github.com/aliteralmind/codelet