public class AugmentingCode
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AugmentingCode.Block
Represents a contiguous block of lines in an
augmenting code section which is either an
embedded string section, an embedded JSON
section, or not an embedded section.
|
| Constructor and Description |
|---|
AugmentingCode() |
AugmentingCode(java.util.List<AugmentingCode.Block> blocks) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.Object> |
getArgs() |
java.util.List<AugmentingCode.Block> |
getBlocks() |
java.lang.String |
getDirectiveMarker() |
int |
getEndLineNumber() |
java.lang.String |
getExternalNestedContent() |
java.lang.Integer |
getGenCodeEndLineNumber() |
java.lang.String |
getGenCodeIndent() |
java.lang.Integer |
getGenCodeLineNumber() |
boolean |
getHasNestedLevelEndMarker() |
boolean |
getHasNestedLevelStartMarker() |
int |
getId() |
java.lang.String |
getIndent() |
int |
getLineNumber() |
java.lang.String |
getLineSeparator() |
java.lang.Integer |
getMatchingNestedLevelEndMarkerIndex() |
java.lang.Integer |
getMatchingNestedLevelStartMarkerIndex() |
int |
getNestedLevelNumber() |
int |
hashCode() |
boolean |
isProcessed() |
void |
setArgs(java.util.List<java.lang.Object> args)
This property is not serialized into files, and is
only available during processing stage.
|
void |
setBlocks(java.util.List<AugmentingCode.Block> blocks)
Sets the blocks an augmenting code section is made up of.
|
void |
setDirectiveMarker(java.lang.String directiveMarker)
Sets the text of the directive used to identify the
first block of an augmenting code section.
|
void |
setEndLineNumber(int endLineNumber)
Sets the line number of the last line of an augmenting
code section.
|
void |
setExternalNestedContent(java.lang.String externalNestedContent)
Sets the portion of the file this augmenting code section belongs to
from the end of this augmenting code, to just before the start of the augmenting
code section which ends the nested level started by this object.
|
void |
setGenCodeEndLineNumber(java.lang.Integer genCodeEndLineNumber)
Sets the line number of the last line of the generated code
section existing for this augmenting code object.
|
void |
setGenCodeIndent(java.lang.String genCodeIndent)
Sets the whitespace prefix of the lines of the generated code section corresponding
to an augmenting code section which has the shortest length.
|
void |
setGenCodeLineNumber(java.lang.Integer genCodeLineNumber)
Sets the line number of the first line of the generated code
section existing for this augmenting code object.
|
void |
setHasNestedLevelEndMarker(boolean hasNestedLevelEndMarker)
Sets the property that identifies an augmenting code section as
an end to the current nested level.
|
void |
setHasNestedLevelStartMarker(boolean hasNestedLevelStartMarker)
Sets the property that identifies an augmenting code
section as a start of a new nested level.
|
void |
setId(int id)
Sets the positive integer uniquely identifying an
augmenting code section in its file.
|
void |
setIndent(java.lang.String indent)
Sets the whitespace prefix of the lines of an augmenting code
section with the minimum length.
|
void |
setLineNumber(int lineNumber)
Sets the line number of the first line of an augmenting
code section.
|
void |
setLineSeparator(java.lang.String lineSeparator)
Sets the line terminator of the first line of an
augmenting code section.
|
void |
setMatchingNestedLevelEndMarkerIndex(java.lang.Integer matchingNestedLevelEndMarkerIndex)
This property is applicable only to augmenting code sections which
have nested level start markers.
|
void |
setMatchingNestedLevelStartMarkerIndex(java.lang.Integer matchingNestedLevelStartMarkerIndex)
This property is applicable only to augmenting code sections which
have nested level end markers.
|
void |
setNestedLevelNumber(int nestedLevelNumber)
Sets the nested level number assigned to an
augmenting code section.
|
void |
setProcessed(boolean processed)
This property is not serialized into files, and is only available
during processing stage.
|
java.lang.String |
toString() |
public AugmentingCode()
public AugmentingCode(java.util.List<AugmentingCode.Block> blocks)
public int getId()
public void setId(int id)
id - public java.util.List<AugmentingCode.Block> getBlocks()
public void setBlocks(java.util.List<AugmentingCode.Block> blocks)
blocks - public java.lang.String getDirectiveMarker()
public void setDirectiveMarker(java.lang.String directiveMarker)
directiveMarker - public java.lang.String getIndent()
public void setIndent(java.lang.String indent)
indent - public int getLineNumber()
public void setLineNumber(int lineNumber)
lineNumber - public int getEndLineNumber()
public void setEndLineNumber(int endLineNumber)
endLineNumber - public java.lang.String getLineSeparator()
public void setLineSeparator(java.lang.String lineSeparator)
lineSeparator - the newline ending the first line of
this augmenting code section.public int getNestedLevelNumber()
public void setNestedLevelNumber(int nestedLevelNumber)
nestedLevelNumber - public java.util.List<java.lang.Object> getArgs()
public void setArgs(java.util.List<java.lang.Object> args)
args - public boolean isProcessed()
public void setProcessed(boolean processed)
processed - public boolean getHasNestedLevelStartMarker()
public void setHasNestedLevelStartMarker(boolean hasNestedLevelStartMarker)
hasNestedLevelStartMarker - true if this augmenting code
section starts a nested level; false if it does not.public boolean getHasNestedLevelEndMarker()
public void setHasNestedLevelEndMarker(boolean hasNestedLevelEndMarker)
hasNestedLevelEndMarker - true if this augmenting code section
ends current nested level; false if it does not.public java.lang.Integer getMatchingNestedLevelStartMarkerIndex()
public void setMatchingNestedLevelStartMarkerIndex(java.lang.Integer matchingNestedLevelStartMarkerIndex)
matchingNestedLevelStartMarkerIndex - index of augmenting code section
in the same file which started the nested level this object is ending;
null if not applicable.public java.lang.Integer getMatchingNestedLevelEndMarkerIndex()
public void setMatchingNestedLevelEndMarkerIndex(java.lang.Integer matchingNestedLevelEndMarkerIndex)
matchingNestedLevelEndMarkerIndex - index of augmenting code section
in the same file which ends the nested level this object is starting;
null if not applicable.public java.lang.String getExternalNestedContent()
public void setExternalNestedContent(java.lang.String externalNestedContent)
externalNestedContent - public java.lang.String getGenCodeIndent()
public void setGenCodeIndent(java.lang.String genCodeIndent)
genCodeIndent - public java.lang.Integer getGenCodeLineNumber()
public void setGenCodeLineNumber(java.lang.Integer genCodeLineNumber)
genCodeLineNumber - public java.lang.Integer getGenCodeEndLineNumber()
public void setGenCodeEndLineNumber(java.lang.Integer genCodeEndLineNumber)
genCodeEndLineNumber - 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