|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sei.aadl.modelsupport.UnparseText
public class UnparseText
This class provides a text buffer into which text can be placed that is formatted with indentation. Appropriate methods are provided for increasing and decreasing indentation. Indentation is automatically taken into account by the addOutput and addOutputNewline methods.
Field Summary | |
---|---|
static java.lang.String |
copyright
|
Constructor Summary | |
---|---|
UnparseText()
constructor for an UnparseText object |
|
UnparseText(boolean doCountOnly)
constructor for an UnparseText object The doCount parameter indicates whether to only keep track of line numbers or actually build up a string buffer |
|
UnparseText(java.lang.String tab)
constructor for an UnparseText object The doCount parameter indicates whether to only keep track of line numbers or actually build up a string buffer |
Method Summary | |
---|---|
void |
addOutput(java.lang.String more)
add a string to the current line of the output |
void |
addOutputNewline(java.lang.String more)
Add string to output and end with a new line |
void |
decrementIndent()
decrement indentation |
java.lang.String |
getIndentString()
|
int |
getLineCount()
return the line count |
java.lang.String |
getParseOutput()
returns the generated unparse string |
void |
incrementIndent()
increment indentation |
void |
setDebug()
Set debug to true. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String copyright
Constructor Detail |
---|
public UnparseText()
public UnparseText(boolean doCountOnly)
doCountOnly
- booleanpublic UnparseText(java.lang.String tab)
tab
- initial white spaceMethod Detail |
---|
public void setDebug()
public void incrementIndent()
public void decrementIndent()
public java.lang.String getIndentString()
public java.lang.String getParseOutput()
public int getLineCount()
public void addOutput(java.lang.String more)
more
- String to be addedpublic void addOutputNewline(java.lang.String more)
more
- String to be added
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |