public class SmapGenerator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
defaultStratum |
private boolean |
doEmbedded |
private java.util.List<java.lang.String> |
embedded |
private java.lang.String |
outputFileName |
private java.util.List<SmapStratum> |
strata |
Constructor and Description |
---|
SmapGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
addSmap(java.lang.String smap,
java.lang.String stratumName)
Adds the given string as an embedded SMAP with the given stratum name.
|
void |
addStratum(SmapStratum stratum,
boolean defaultStratum)
Adds the given SmapStratum object, representing a Stratum with
logically associated FileSection and LineSection blocks, to
the current SmapGenerator.
|
java.lang.String |
getString() |
static void |
main(java.lang.String[] args) |
void |
setDoEmbedded(boolean status)
Instructs the SmapGenerator whether to actually print any embedded
SMAPs or not.
|
void |
setOutputFileName(java.lang.String x)
Sets the filename (without path information) for the generated
source file.
|
java.lang.String |
toString() |
private java.lang.String outputFileName
private java.lang.String defaultStratum
private java.util.List<SmapStratum> strata
private java.util.List<java.lang.String> embedded
private boolean doEmbedded
public void setOutputFileName(java.lang.String x)
public void addStratum(SmapStratum stratum, boolean defaultStratum)
stratum
- the SmapStratum object to adddefaultStratum
- if true, this SmapStratum is considered
to represent the default SMAP stratum unless
overwrittenpublic void addSmap(java.lang.String smap, java.lang.String stratumName)
smap
- the SMAP to embedstratumName
- the name of the stratum output by the compilation
that produced the smap to be embeddedpublic void setDoEmbedded(boolean status)
status
- If false, ignore any embedded SMAPs.public java.lang.String getString()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)