|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uni_paderborn.fujaba.codegen.CodeGenVisitor
Class CodeGenVisitor
-------- 0..1 hasVisitors 0..1 CodeGenStrategy | name |------------------------------------- CodeGenVisitor -------- codeGenStrategy codeGenVisitor 0..1 0..1 CodeGenVisitor ---------------------------------- CodeGenStrategy currentVisitor currentStrategy
Field Summary | |
static java.lang.String |
EIFFEL_VISITOR
No comment provided by developer, please add a comment to improve documentation. |
java.lang.String |
END_BLOCK_COMMENTARY
No comment provided by developer, please add a comment to improve documentation. |
static java.lang.String |
GNU_CPP_CLASS_VISITOR
No comment provided by developer, please add a comment to improve documentation. |
static java.lang.String |
GNU_CPP_HEADER_VISITOR
No comment provided by developer, please add a comment to improve documentation. |
java.lang.String |
INDENT_STRING
No comment provided by developer, please add a comment to improve documentation. |
static java.lang.String |
JAVA_VISITOR
No comment provided by developer, please add a comment to improve documentation. |
java.lang.String |
LINE_COMMENTARY
No comment provided by developer, please add a comment to improve documentation. |
java.lang.String |
LINE_IN_BLOCK_COMMENTARY
No comment provided by developer, please add a comment to improve documentation. |
java.lang.String |
START_BLOCK_COMMENTARY
No comment provided by developer, please add a comment to improve documentation. |
static java.lang.String |
TMP_FILE_EXTENDER
No comment provided by developer, please add a comment to improve documentation. |
Constructor Summary | |
CodeGenVisitor()
Default Constructor |
|
CodeGenVisitor(java.lang.String extender)
Default Constructor |
Method Summary | |
void |
append(java.lang.String code)
No comment provided by developer, please add a comment to improve documentation. |
void |
append(java.lang.StringBuffer code)
No comment provided by developer, please add a comment to improve documentation. |
void |
appendFragment(CodeGenFragment fragment)
No comment provided by developer, please add a comment to improve documentation. |
TextFragment |
appendTextFragment(java.lang.String name)
No comment provided by developer, please add a comment to improve documentation. |
java.lang.String |
createCommentary(java.lang.String text)
No comment provided by developer, please add a comment to improve documentation. |
void |
createDirectory(java.lang.String path)
No comment provided by developer, please add a comment to improve documentation. |
java.io.File |
createFile(java.lang.String path,
java.lang.String name)
No comment provided by developer, please add a comment to improve documentation. |
void |
createFiles(java.lang.String path,
java.lang.String name)
No comment provided by developer, please add a comment to improve documentation. |
java.lang.String |
createIndentString()
No comment provided by developer, please add a comment to improve documentation. |
java.lang.String |
createIndentString(java.lang.String indentText,
int nr)
No comment provided by developer, please add a comment to improve documentation. |
java.lang.String |
createLineCommentary(java.lang.String text)
No comment provided by developer, please add a comment to improve documentation. |
void |
decIndentNr()
No comment provided by developer, please add a comment to improve documentation. |
CodeGenStrategy |
getCodeGenStrategy()
|
java.lang.StringBuffer |
getCurrentBuffer()
Get the value of currentBuffer. |
java.io.File |
getCurrentFile()
Get the value of currentFile. |
CodeGenFragment |
getCurrentFragment()
Get the currentFragment attribute of the CodeGenVisitor object |
CodeGenStrategy |
getCurrentStrategy()
|
java.lang.String |
getExtender()
Get the value of extender. |
java.lang.String |
getFileName(FFile theFile)
Get the fileName attribute of the OOGenVisitor object |
CodeGenFragment |
getFirstFragment()
Get the firstFragment attribute of the CodeGenVisitor object |
int |
getIndentNr()
Get the value of indentNr. |
java.lang.String |
getName()
Get the value of name. |
java.lang.String |
getPath()
Get the value of path. |
void |
incIndentNr()
No comment provided by developer, please add a comment to improve documentation. |
java.lang.String |
indentText(java.lang.String text)
No comment provided by developer, please add a comment to improve documentation. |
java.lang.String |
indentText(java.lang.String text,
java.lang.String indentString)
No comment provided by developer, please add a comment to improve documentation. |
void |
initBuffer()
No comment provided by developer, please add a comment to improve documentation. |
void |
initVisitor(java.lang.String path,
java.lang.String name,
boolean createFiles)
No comment provided by developer, please add a comment to improve documentation. |
boolean |
isCommentary(java.lang.String text)
Get the commentary attribute of the CodeGenVisitor object |
void |
newLine()
No comment provided by developer, please add a comment to improve documentation. |
java.lang.String |
removeIndentFromCommentary(java.lang.String text)
No comment provided by developer, please add a comment to improve documentation. |
void |
removeYou()
No comment provided by developer, please add a comment to improve documentation. |
boolean |
setCodeGenStrategy(CodeGenStrategy value)
|
void |
setCurrentFile(java.io.File currentFile)
Set the value of currentFile. |
boolean |
setCurrentStrategy(CodeGenStrategy value)
|
void |
setExtender(java.lang.String extender)
Set the value of extender. |
void |
setFirstFragment(CodeGenFragment fragment)
Sets the firstFragment attribute of the CodeGenVisitor object |
void |
setIndentNr(int indentNr)
Set the value of indentNr. |
void |
setName(java.lang.String name)
Set the value of name. |
void |
setPath(java.lang.String path)
Set the value of path. |
java.lang.String |
toString()
|
boolean |
writeBufferToFile(java.lang.StringBuffer theBuffer,
java.io.File theFile)
No comment provided by developer, please add a comment to improve documentation. |
void |
writeFiles()
No comment provided by developer, please add a comment to improve documentation. |
boolean |
writeFragmentsToFile(java.io.File theFile)
No comment provided by developer, please add a comment to improve documentation. |
boolean |
writeFragmentsToStream(java.io.Writer theWriter)
No comment provided by developer, please add a comment to improve documentation. |
boolean |
writeFragmentToStream(CodeGenFragment fragment,
java.io.Writer theWriter)
No comment provided by developer, please add a comment to improve documentation. |
boolean |
writeToStream(java.lang.String text,
java.io.Writer theWriter)
No comment provided by developer, please add a comment to improve documentation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String JAVA_VISITOR
public static final java.lang.String EIFFEL_VISITOR
public static final java.lang.String GNU_CPP_CLASS_VISITOR
public static final java.lang.String GNU_CPP_HEADER_VISITOR
public static final java.lang.String TMP_FILE_EXTENDER
public java.lang.String START_BLOCK_COMMENTARY
public java.lang.String END_BLOCK_COMMENTARY
public java.lang.String LINE_IN_BLOCK_COMMENTARY
public java.lang.String LINE_COMMENTARY
public java.lang.String INDENT_STRING
Constructor Detail |
public CodeGenVisitor()
public CodeGenVisitor(java.lang.String extender)
extender
- No description providedMethod Detail |
public final void createFiles(java.lang.String path, java.lang.String name)
path
- No description providedname
- No description providedpublic void initBuffer()
public void initVisitor(java.lang.String path, java.lang.String name, boolean createFiles)
path
- No description providedname
- No description providedcreateFiles
- No description providedpublic void writeFiles()
public final void createDirectory(java.lang.String path)
path
- No description providedpublic final java.io.File createFile(java.lang.String path, java.lang.String name)
path
- No description providedname
- No description provided
public final boolean writeBufferToFile(java.lang.StringBuffer theBuffer, java.io.File theFile)
theBuffer
- No description providedtheFile
- No description provided
public final boolean writeToStream(java.lang.String text, java.io.Writer theWriter)
text
- No description providedtheWriter
- No description provided
public final boolean writeFragmentToStream(CodeGenFragment fragment, java.io.Writer theWriter)
fragment
- No description providedtheWriter
- No description provided
public boolean writeFragmentsToStream(java.io.Writer theWriter)
theWriter
- No description provided
public final boolean writeFragmentsToFile(java.io.File theFile)
theFile
- No description provided
public void append(java.lang.StringBuffer code)
code
- No description providedpublic void append(java.lang.String code)
code
- No description providedpublic CodeGenFragment getFirstFragment()
public void setFirstFragment(CodeGenFragment fragment)
fragment
- The new firstFragment valuepublic CodeGenFragment getCurrentFragment()
public void appendFragment(CodeGenFragment fragment)
fragment
- No description providedpublic TextFragment appendTextFragment(java.lang.String name)
name
- No description provided
public boolean isCommentary(java.lang.String text)
text
- No description provided
public java.lang.String removeIndentFromCommentary(java.lang.String text)
text
- No description provided
public java.lang.String createCommentary(java.lang.String text)
text
- No description provided
public java.lang.String createLineCommentary(java.lang.String text)
text
- No description provided
public java.lang.String indentText(java.lang.String text, java.lang.String indentString)
text
- No description providedindentString
- No description provided
public java.lang.String createIndentString(java.lang.String indentText, int nr)
indentText
- No description providednr
- No description provided
public final java.io.File getCurrentFile()
public final void setCurrentFile(java.io.File currentFile)
currentFile
- Value to assign to currentFile.public final java.lang.String createIndentString()
public final java.lang.String indentText(java.lang.String text)
text
- No description provided
public final void newLine()
public java.lang.String getFileName(FFile theFile)
theFile
- No description provided
public final int getIndentNr()
public final void setIndentNr(int indentNr)
indentNr
- Value to assign to indentNr.public final void incIndentNr()
public final void decIndentNr()
public final java.lang.String getExtender()
public final void setExtender(java.lang.String extender)
extender
- Value to assign to extender.public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- Value to assign to path.public boolean setCurrentStrategy(CodeGenStrategy value)
value
- The new currentStrategy value
#currentStrategy
public CodeGenStrategy getCurrentStrategy()
#currentStrategy
public java.lang.String getName()
public void setName(java.lang.String name)
name
- Value to assign to name.public boolean setCodeGenStrategy(CodeGenStrategy value)
value
- The new codeGenStrategy value
#codeGenStrategy
public CodeGenStrategy getCodeGenStrategy()
#codeGenStrategy
public final java.lang.StringBuffer getCurrentBuffer()
public java.lang.String toString()
public void removeYou()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |