de.uni_paderborn.fujaba.codegen
Class EiffelGenVisitor

java.lang.Object
  extended byde.uni_paderborn.fujaba.codegen.CodeGenVisitor
      extended byde.uni_paderborn.fujaba.codegen.OOGenVisitor
          extended byde.uni_paderborn.fujaba.codegen.EiffelGenVisitor

public class EiffelGenVisitor
extends OOGenVisitor

Class EiffelGenVisitor

Version:
$Revision: 1.31.2.1 $
Author:
$Author: mksoft $

Field Summary
 
Fields inherited from class de.uni_paderborn.fujaba.codegen.OOGenVisitor
ABSTRACT_STRING, ADD_OP_STRING, ADD_TO_SET_METHOD_STRING, AND_OP_STRING, ASSIGNMENT_OP_STRING, BREAK_STRING, CASE_STRING, CATCH_STRING, CLASS_STRING, CLOSE_NORM_BRACKET, COMPARE_TO_METHOD_STRING, DECR_OP_STRING, DIV_OP_STRING, DO_STRING, ELSE_STRING, EMPTY_STRING, END_BLOCK, END_METHOD_BLOCK, END_OF_LINE, END_OF_STATEMENT, END_OF_STATEMENT_LINE, EQUAL_OP_STRING, EQUALS_METHOD_STRING, EXTENDS_STRING, F_STATIC_STRING, FALSE_STRING, FINAL_STRING, FINALLY_STRING, FOR_STRING, GREATER_EQUAL_OP_STRING, GREATER_OP_STRING, IF_STRING, ILLEGALDATA_EXCEPTION_STRING, IMPLEMENTS_STRING, INCR_OP_STRING, INTERFACE_STRING, INTERRUPTED_EXCEPTION_STRING, LESS_EQUAL_OP_STRING, LESS_OP_STRING, LIST_SEPARATOR, MUL_OP_STRING, NATIVE_STRING, NO_ORDER, NOT_EQUAL_OP_STRING, NOT_OP_STRING, NULL_STRING, OPEN_NORM_BRACKET, OR_OP_STRING, ORDER, POINTER_POSTFIX, RETURN_STRING, SDM_ENSURE_STRING, SDM_EXCEPTION_STRING, SET_CONTAINS_METHOD_STRING, START_BLOCK, START_IF_BLOCK, START_METHOD_BLOCK, START_METHOD_BODY, SUB_OP_STRING, SWITCH_STRING, SYNCHRONIZED_STRING, THIS_STRING, TMP_FILE_EXTENDER, TRANSIENT_STRING, TRUE_STRING, TRY_STRING, UNIT_ASSERT_STRING, visibilityStrings, WHILE_STRING
 
Fields inherited from class de.uni_paderborn.fujaba.codegen.CodeGenVisitor
EIFFEL_VISITOR, END_BLOCK_COMMENTARY, GNU_CPP_CLASS_VISITOR, GNU_CPP_HEADER_VISITOR, INDENT_STRING, JAVA_VISITOR, LINE_COMMENTARY, LINE_IN_BLOCK_COMMENTARY, START_BLOCK_COMMENTARY
 
Constructor Summary
EiffelGenVisitor()
          Default Constructor
 
Method Summary
 java.lang.String createAttrDeclaration(FAttr theAttr)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String createClassInterfaceModifier(FClass theClass)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String createMethodDeclaration(FMethod theMethod)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String createMethodParam(FParam theParam)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String createVarDecl(java.lang.String varType, java.lang.String varName, java.lang.String initString)
          No comment provided by developer, please add a comment to improve documentation.
 void generateClassEndBlock()
          No comment provided by developer, please add a comment to improve documentation.
 void generateClassStartBlock()
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String generateImportClass(FClass theClass)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String generateImportPackage(FPackage thePackage)
          No comment provided by developer, please add a comment to improve documentation.
 void generatePackageBegin(FFile theFile)
          No comment provided by developer, please add a comment to improve documentation.
 void generatePackageEnd(FFile theFile)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String getAssocTemplateName()
          Get the assocTemplateName attribute of the EiffelGenVisitor object
 java.lang.String getAttrDeclName(FAttr theAttr)
          Get the attrDeclName attribute of the EiffelGenVisitor object
 java.lang.String getAttrDeclVisibilityString(int visibility)
          Get the uMLAttrDeclVisibilityString attribute of the EiffelGenVisitor object
 java.lang.String getContainerName(OOCollectionEnum containerType, boolean bound)
          get the full qualified containername for type containerType
 java.lang.String getMethodDeclName(FMethod theMethod)
          Get the methodDeclName attribute of the EiffelGenVisitor object
 java.lang.String getMethodDeclVisibilityString(int visibility)
          Get the uMLMethodDeclVisibilityString attribute of the EiffelGenVisitor object
 java.lang.String getReferenceTemplateName()
          Get the referenceTemplateName attribute of the EiffelGenVisitor object
 java.lang.String getSourceCode(OOClassOfVariableExpr expression)
          Get the sourceCode attribute of the EiffelGenVisitor object
 java.lang.String getSourceCode(OOFWIteratorGetExpr expression)
          Get the sourceCode attribute of the EiffelGenVisitor object
 java.lang.String getSourceCode(OOFWIteratorGotoNextExpr expression)
          Get the sourceCode attribute of the EiffelGenVisitor object
 java.lang.String getSourceCode(OOFWIteratorHasNextExpr expression)
          Get the sourceCode attribute of the EiffelGenVisitor object
 java.lang.String getSourceCode(OOFWIteratorOfExpr expression)
          Get the sourceCode attribute of the EiffelGenVisitor object
 java.lang.String getSourceCode(OOIfStatement statement)
          Get the sourceCode attribute of the EiffelGenVisitor object
 java.lang.String getSourceCode(OONewArrayExpr expr)
          Get the sourceCode attribute of the EiffelGenVisitor object
 java.lang.String getSourceCode(OOObjectOfTypeExpr expression)
          Get the sourceCode attribute of the EiffelGenVisitor object
 java.lang.String getSourceCode(OOStartBlockStatement statement)
          Get the sourceCode attribute of the EiffelGenVisitor object
 java.lang.String getSourceCode(OOStartMethodBodyStatement statement)
          Get the sourceCode attribute of the EiffelGenVisitor object
 java.lang.String getSourceCode(OOThrowStatement statement)
          Get the sourceCode attribute of the EiffelGenVisitor object
 void initProgLangTypes()
          No comment provided by developer, please add a comment to improve documentation.
 void initVisibilityStrings()
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String toString()
           
 
Methods inherited from class de.uni_paderborn.fujaba.codegen.OOGenVisitor
addToProgLangTypes, appendAttrCommentary, appendAttrDeclaration, appendClassCommentary, appendClassDeclaration, appendMethodBody, appendMethodCommentary, appendMethodDeclaration, appendStatement, createAttrCommentary, createClassCommentary, createClassDeclaration, createClassExtendsDeclaration, createCloseBlock, createInitializerDeclaration, createInterfaceDeclaration, createInterfaceExtendsDeclaration, createMethodCommentary, createMethodParamList, createNormalFMethodDeclaration, createOpenBlock, entriesOfProgLangTypes, generateCloseBlock, generateOpenBlock, getClassName, getContainerName, getFromProgLangTypes, getInterfaceName, getMethodName, getOOTypeAsString, getOOTypeAsString, getOOTypeAsString, getOOTypeAsString, getOOTypeAsString, getOperationText, getProgLangType, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getSourceCode, getTypeAsString, getTypeAsString, getTypeNameAsString, getTypeNameAsString, getVarName, getVarName, getVisibilityString, hasInProgLangTypes, hasKeyInProgLangTypes, iteratorOfProgLangTypes, keysOfProgLangTypes, removeAllFromProgLangTypes, removeKeyFromProgLangTypes, removeYou
 
Methods inherited from class de.uni_paderborn.fujaba.codegen.CodeGenVisitor
append, append, appendFragment, appendTextFragment, createCommentary, createDirectory, createFile, createFiles, createIndentString, createIndentString, createLineCommentary, decIndentNr, getCodeGenStrategy, getCurrentBuffer, getCurrentFile, getCurrentFragment, getCurrentStrategy, getExtender, getFileName, getFirstFragment, getIndentNr, getName, getPath, incIndentNr, indentText, indentText, initBuffer, initVisitor, isCommentary, newLine, removeIndentFromCommentary, setCodeGenStrategy, setCurrentFile, setCurrentStrategy, setExtender, setFirstFragment, setIndentNr, setName, setPath, writeBufferToFile, writeFiles, writeFragmentsToFile, writeFragmentsToStream, writeFragmentToStream, writeToStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EiffelGenVisitor

public EiffelGenVisitor()
Default Constructor

Method Detail

getReferenceTemplateName

public final java.lang.String getReferenceTemplateName()
Get the referenceTemplateName attribute of the EiffelGenVisitor object

Specified by:
getReferenceTemplateName in class OOGenVisitor
Returns:
The referenceTemplateName value

getAssocTemplateName

public final java.lang.String getAssocTemplateName()
Get the assocTemplateName attribute of the EiffelGenVisitor object

Specified by:
getAssocTemplateName in class OOGenVisitor
Returns:
The assocTemplateName value

getContainerName

public java.lang.String getContainerName(OOCollectionEnum containerType,
                                         boolean bound)
get the full qualified containername for type containerType

Specified by:
getContainerName in class OOGenVisitor
Parameters:
containerType - the containerType
bound - true, if assoc is bound
Returns:
the full qualified containername

initProgLangTypes

public void initProgLangTypes()
No comment provided by developer, please add a comment to improve documentation.

Specified by:
initProgLangTypes in class OOGenVisitor

initVisibilityStrings

public void initVisibilityStrings()
No comment provided by developer, please add a comment to improve documentation.

Specified by:
initVisibilityStrings in class OOGenVisitor

getSourceCode

public final java.lang.String getSourceCode(OOThrowStatement statement)
Get the sourceCode attribute of the EiffelGenVisitor object

Specified by:
getSourceCode in class OOGenVisitor
Parameters:
statement - No description provided
Returns:
The sourceCode value

getSourceCode

public final java.lang.String getSourceCode(OOStartMethodBodyStatement statement)
Get the sourceCode attribute of the EiffelGenVisitor object

Overrides:
getSourceCode in class OOGenVisitor
Parameters:
statement - No description provided
Returns:
The sourceCode value

getSourceCode

public java.lang.String getSourceCode(OOIfStatement statement)
Get the sourceCode attribute of the EiffelGenVisitor object

Overrides:
getSourceCode in class OOGenVisitor
Parameters:
statement - No description provided
Returns:
The sourceCode value

getSourceCode

public java.lang.String getSourceCode(OOStartBlockStatement statement)
Get the sourceCode attribute of the EiffelGenVisitor object

Overrides:
getSourceCode in class OOGenVisitor
Parameters:
statement - No description provided
Returns:
The sourceCode value

getSourceCode

public final java.lang.String getSourceCode(OOObjectOfTypeExpr expression)
Get the sourceCode attribute of the EiffelGenVisitor object

Parameters:
expression - No description provided
Returns:
The sourceCode value

getSourceCode

public final java.lang.String getSourceCode(OOClassOfVariableExpr expression)
Get the sourceCode attribute of the EiffelGenVisitor object

Parameters:
expression - No description provided
Returns:
The sourceCode value

getSourceCode

public final java.lang.String getSourceCode(OOFWIteratorOfExpr expression)
Get the sourceCode attribute of the EiffelGenVisitor object

Parameters:
expression - No description provided
Returns:
The sourceCode value

getSourceCode

public final java.lang.String getSourceCode(OOFWIteratorGetExpr expression)
Get the sourceCode attribute of the EiffelGenVisitor object

Parameters:
expression - No description provided
Returns:
The sourceCode value

getSourceCode

public final java.lang.String getSourceCode(OOFWIteratorHasNextExpr expression)
Get the sourceCode attribute of the EiffelGenVisitor object

Parameters:
expression - No description provided
Returns:
The sourceCode value

getSourceCode

public final java.lang.String getSourceCode(OOFWIteratorGotoNextExpr expression)
Get the sourceCode attribute of the EiffelGenVisitor object

Parameters:
expression - No description provided
Returns:
The sourceCode value

getSourceCode

public java.lang.String getSourceCode(OONewArrayExpr expr)
Get the sourceCode attribute of the EiffelGenVisitor object

Specified by:
getSourceCode in class OOGenVisitor
Parameters:
expr - No description provided
Returns:
The sourceCode value

generatePackageBegin

public void generatePackageBegin(FFile theFile)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
generatePackageBegin in class OOGenVisitor
Parameters:
theFile - No description provided

generatePackageEnd

public void generatePackageEnd(FFile theFile)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
generatePackageEnd in class OOGenVisitor
Parameters:
theFile - No description provided

generateClassEndBlock

public void generateClassEndBlock()
No comment provided by developer, please add a comment to improve documentation.

Specified by:
generateClassEndBlock in class OOGenVisitor

generateClassStartBlock

public void generateClassStartBlock()
No comment provided by developer, please add a comment to improve documentation.

Specified by:
generateClassStartBlock in class OOGenVisitor

generateImportPackage

public java.lang.String generateImportPackage(FPackage thePackage)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
generateImportPackage in class OOGenVisitor
Parameters:
thePackage - No description provided
Returns:
No description provided

generateImportClass

public java.lang.String generateImportClass(FClass theClass)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
generateImportClass in class OOGenVisitor
Parameters:
theClass - No description provided
Returns:
No description provided

createClassInterfaceModifier

public java.lang.String createClassInterfaceModifier(FClass theClass)
No comment provided by developer, please add a comment to improve documentation.

Overrides:
createClassInterfaceModifier in class OOGenVisitor
Parameters:
theClass - No description provided
Returns:
No description provided

createAttrDeclaration

public java.lang.String createAttrDeclaration(FAttr theAttr)
No comment provided by developer, please add a comment to improve documentation.

Overrides:
createAttrDeclaration in class OOGenVisitor
Parameters:
theAttr - No description provided
Returns:
No description provided

createMethodDeclaration

public java.lang.String createMethodDeclaration(FMethod theMethod)
No comment provided by developer, please add a comment to improve documentation.

Overrides:
createMethodDeclaration in class OOGenVisitor
Parameters:
theMethod - No description provided
Returns:
No description provided

createMethodParam

public java.lang.String createMethodParam(FParam theParam)
No comment provided by developer, please add a comment to improve documentation.

Overrides:
createMethodParam in class OOGenVisitor
Parameters:
theParam - No description provided
Returns:
No description provided

createVarDecl

public java.lang.String createVarDecl(java.lang.String varType,
                                      java.lang.String varName,
                                      java.lang.String initString)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
varType - No description provided
varName - No description provided
initString - No description provided
Returns:
No description provided

getAttrDeclName

public java.lang.String getAttrDeclName(FAttr theAttr)
Get the attrDeclName attribute of the EiffelGenVisitor object

Specified by:
getAttrDeclName in class OOGenVisitor
Parameters:
theAttr - No description provided
Returns:
The attrDeclName value

getMethodDeclName

public java.lang.String getMethodDeclName(FMethod theMethod)
Get the methodDeclName attribute of the EiffelGenVisitor object

Specified by:
getMethodDeclName in class OOGenVisitor
Parameters:
theMethod - No description provided
Returns:
The methodDeclName value

getAttrDeclVisibilityString

public java.lang.String getAttrDeclVisibilityString(int visibility)
Get the uMLAttrDeclVisibilityString attribute of the EiffelGenVisitor object

Overrides:
getAttrDeclVisibilityString in class OOGenVisitor
Parameters:
visibility - No description provided
Returns:
The uMLAttrDeclVisibilityString value

getMethodDeclVisibilityString

public java.lang.String getMethodDeclVisibilityString(int visibility)
Get the uMLMethodDeclVisibilityString attribute of the EiffelGenVisitor object

Overrides:
getMethodDeclVisibilityString in class OOGenVisitor
Parameters:
visibility - No description provided
Returns:
The uMLMethodDeclVisibilityString value

toString

public java.lang.String toString()
Overrides:
toString in class OOGenVisitor
Returns:
short string representation of current object