public class GeneratedCode
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GeneratedCode.ContentPart
Represents a section of generated code content.
|
| Constructor and Description |
|---|
GeneratedCode() |
GeneratedCode(int id,
boolean disableEnsureEndingNewline,
java.lang.String indent,
boolean skipped,
boolean replaceAugCodeDirectives,
boolean replaceGenCodeDirectives,
java.util.List<GeneratedCode.ContentPart> contentParts) |
GeneratedCode(java.util.List<GeneratedCode.ContentPart> contentParts) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<GeneratedCode.ContentPart> |
getContentParts() |
int |
getId() |
java.lang.String |
getIndent() |
java.lang.String |
getWholeContent()
Gets generated content concatenated from content parts.
|
int |
hashCode() |
boolean |
isDisableEnsureEndingNewline() |
java.lang.Boolean |
isPreferInline() |
boolean |
isReplaceAugCodeDirectives() |
boolean |
isReplaceGenCodeDirectives() |
boolean |
isSkipped() |
void |
setContentParts(java.util.List<GeneratedCode.ContentPart> contentParts)
Sets the parts of a generated code content.
|
void |
setDisableEnsureEndingNewline(boolean disableEnsureEndingNewline)
Sets the property which prevents appending newline to generated code
content not ending with one.
|
void |
setId(int id)
Sets the id of the augmenting code object to which this generated code
object corresponds.
|
void |
setIndent(java.lang.String indent)
Sets the indent to apply to the generated code object.
|
void |
setPreferInline(java.lang.Boolean preferInline)
Sets the property which communicates to completion stage how to decide when
using inline generated code directives.
|
void |
setReplaceAugCodeDirectives(boolean replaceAugCodeDirectives)
Sets property which directs completion stage to include augmenting code
section itself in the range of source file to be replaced by generated
code section.
|
void |
setReplaceGenCodeDirectives(boolean replaceGenCodeDirectives)
Sets property which directs completion stage to include generated code
section itself in the range of source file to be replaced by generated
code section.
|
void |
setSkipped(boolean skipped)
Sets the property which communicates to completion stage that it should skip
getting and merging generated code for an augmenting code section.
|
java.lang.String |
toString() |
public GeneratedCode()
public GeneratedCode(java.util.List<GeneratedCode.ContentPart> contentParts)
public GeneratedCode(int id,
boolean disableEnsureEndingNewline,
java.lang.String indent,
boolean skipped,
boolean replaceAugCodeDirectives,
boolean replaceGenCodeDirectives,
java.util.List<GeneratedCode.ContentPart> contentParts)
public int getId()
public void setId(int id)
id - public java.lang.String getIndent()
public void setIndent(java.lang.String indent)
indent - public boolean isDisableEnsureEndingNewline()
public void setDisableEnsureEndingNewline(boolean disableEnsureEndingNewline)
disableEnsureEndingNewline - public boolean isSkipped()
public void setSkipped(boolean skipped)
skipped - public boolean isReplaceAugCodeDirectives()
public void setReplaceAugCodeDirectives(boolean replaceAugCodeDirectives)
replaceAugCodeDirectives - public boolean isReplaceGenCodeDirectives()
public void setReplaceGenCodeDirectives(boolean replaceGenCodeDirectives)
setReplaceAugCodeDirectives(boolean).
replaceGenCodeDirectives - public java.lang.Boolean isPreferInline()
public void setPreferInline(java.lang.Boolean preferInline)
preferInline - the preference for inline code generation.
if null, then default behaviour is used. if true, then
inline generated code directives will be used if possible. Else false means
that inline generated code directives is guaranteed not to be used.public java.util.List<GeneratedCode.ContentPart> getContentParts()
public void setContentParts(java.util.List<GeneratedCode.ContentPart> contentParts)
public java.lang.String getWholeContent()
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