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, unsafe
NEWLINE
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, replace
private static final java.lang.String HDR
public void initialize(Options opts)
initialize
in interface CompatibilityHelper
initialize
in class BaseHelper
opts
- The configuration.public java.lang.String suffix()
suffix
in interface CompatibilityHelper
suffix
in class BaseHelper
public java.lang.String header()
header
in interface CompatibilityHelper
header
in class BaseHelper
public java.lang.String openHTML(boolean content)
openHTML
in interface CompatibilityHelper
openHTML
in class BaseHelper
content
- 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 CompatibilityHelper
openExprEscape
in class BaseHelper
public java.lang.String closeExprEscape()
closeExprEscape
in interface CompatibilityHelper
closeExprEscape
in class BaseHelper
public java.lang.String openComment(boolean expr)
openComment
in interface CompatibilityHelper
openComment
in class BaseHelper
expr
- 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 CompatibilityHelper
closeComment
in class BaseHelper
expr
- 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 CompatibilityHelper
footer
in class BaseHelper