public class BlueDiamondHelper extends BaseHelper
Compatibility notes:
E4GLParser doesn't duplicate these limitations should
not cause any issues (e.g. statement and expression escapes must
be on their own lines in Blue Diamond, there can't be a mixture of
raw HTML and partial escapes on the same line)
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
HDR
Standard Blue Diamond header for procedure files.
|
entities, opts, unsafeNEWLINE| Constructor and Description |
|---|
BlueDiamondHelper() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
closeComment(boolean expr)
Return the text used to end a comment that removes the start or end tag
for a statement or expression escape.
|
java.lang.String |
closeExprEscape()
Return the text used to end the output of an embedded 4GL expression.
|
java.lang.String |
footer()
Return the text for the footer of the generated file.
|
java.lang.String |
header()
Return the text for the header of the generated file.
|
void |
initialize(Options opts)
Provides the known configuration to the helper and allows it to
prepare for use.
|
java.lang.String |
openComment(boolean expr)
Return the text used to start a comment that removes the start or end
tag for a statement or expression escape.
|
java.lang.String |
openExprEscape()
Return the text used to start the output of an embedded 4GL expression.
|
java.lang.String |
openHTML(boolean content)
Return the text used to start a line of raw HTML output.
|
java.lang.String |
suffix()
Return the filename suffix (extension) to be used.
|
closeContentTypeComment, closeHTML, entityConvert, escapeHTML, openContentTypeComment, replaceprivate static final java.lang.String HDR
public void initialize(Options opts)
initialize in interface CompatibilityHelperinitialize in class BaseHelperopts - The configuration.public java.lang.String suffix()
suffix in interface CompatibilityHelpersuffix in class BaseHelperpublic java.lang.String header()
header in interface CompatibilityHelperheader in class BaseHelperpublic java.lang.String openHTML(boolean content)
openHTML in interface CompatibilityHelperopenHTML in class BaseHelpercontent - true if there is HTML content that is about to
be emitted on the line, false to handle the
no content case (just start the line, without any
content prefix text).public java.lang.String openExprEscape()
openExprEscape in interface CompatibilityHelperopenExprEscape in class BaseHelperpublic java.lang.String closeExprEscape()
closeExprEscape in interface CompatibilityHelpercloseExprEscape in class BaseHelperpublic java.lang.String openComment(boolean expr)
openComment in interface CompatibilityHelperopenComment in class BaseHelperexpr - true if this is an expression escape,
false for a statement escape.null
if the escape should be removed instead of commented.public java.lang.String closeComment(boolean expr)
closeComment in interface CompatibilityHelpercloseComment in class BaseHelperexpr - true if this is an expression escape,
false for a statement escape.null
if the escape should be removed instead of commented.public java.lang.String footer()
footer in interface CompatibilityHelperfooter in class BaseHelper