public static class AugmentingCode.Block
extends java.lang.Object
In general a block of augmenting code is to be interpreted as programming language codes to be evaluated dynamically during processing stage. With data driven programming paradigm, the first block (which cannot be an embedded string or JSON data) is interpreted as the name of a function, and subsequent augmenting code blocks are ignored. Embedded string and JSON blocks then provide the arguments to pass to the function.
An embedded string block means that the processing stage should treat it as a literal string value.
An embedded JSON block means that the processing stage should treat it as a JSON value.
| Constructor and Description |
|---|
Block() |
Block(java.lang.String content,
boolean stringify,
boolean jsonify) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getContent() |
int |
hashCode() |
boolean |
isJsonify() |
boolean |
isStringify() |
void |
setContent(java.lang.String content)
Sets the content of a block/subsection of
an augmenting code section.
|
void |
setJsonify(boolean jsonify)
Sets the property identifying a block/subsection of
augmenting code section as embedded JSON value.
|
void |
setStringify(boolean stringify)
Sets the property identifying an augmenting code
section portion as embedded string data.
|
java.lang.String |
toString() |
public Block()
public Block(java.lang.String content,
boolean stringify,
boolean jsonify)
public java.lang.String getContent()
public void setContent(java.lang.String content)
content - public boolean isStringify()
public void setStringify(boolean stringify)
stringify - true if this block is an embedded string,
false if it is not.public boolean isJsonify()
public void setJsonify(boolean jsonify)
jsonify - true if this block is an embedded JSON value,
false if it is not.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object