de.uni_paderborn.fujaba.codegen
Class AbstractCPPGenVisitor

java.lang.Object
  extended byde.uni_paderborn.fujaba.codegen.CodeGenVisitor
      extended byde.uni_paderborn.fujaba.codegen.OOGenVisitor
          extended byde.uni_paderborn.fujaba.codegen.AbstractCPPGenVisitor
Direct Known Subclasses:
GnuCPPClassGenVisitor, GnuCPPHeaderGenVisitor

public abstract class AbstractCPPGenVisitor
extends OOGenVisitor

Class AbstractCPPGenVisitor

Version:
$Revision: 1.39.2.1 $
Author:
$Author: mtt $

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
AbstractCPPGenVisitor(java.lang.String extender)
          Default Constructor
 
Method Summary
 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.
 java.lang.String getAssocTemplateName()
          Get the assocTemplateName attribute of the AbstractCPPGenVisitor object
 java.lang.String getContainerName(OOCollectionEnum containerType, boolean bound)
          get the full qualified containername for type containerType
 java.lang.String getMethodName(OOMethod methodName)
          Get the methodName attribute of the OOGenVisitor object
 java.lang.String getOOTypeAsString(OOContainerType theType, boolean isBound)
          Get the oOTypeAsString attribute of the AbstractCPPGenVisitor object
 java.lang.String getReferenceTemplateName()
          Get the referenceTemplateName attribute of the AbstractCPPGenVisitor object
 java.lang.String getSourceCode(OOCallAttrExpr expression)
          Get the sourceCode attribute of the OOGenVisitor object
 java.lang.String getSourceCode(OOCallMethodExpr expression)
          Get the sourceCode attribute of the OOGenVisitor object
 java.lang.String getSourceCode(OOClassOfVariableExpr expression)
          Get the sourceCode attribute of the AbstractCPPGenVisitor object
 java.lang.String getSourceCode(OOFWIteratorGetExpr expression)
          Get the sourceCode attribute of the AbstractCPPGenVisitor object
 java.lang.String getSourceCode(OOFWIteratorGotoNextExpr expression)
          Get the sourceCode attribute of the AbstractCPPGenVisitor object
 java.lang.String getSourceCode(OOFWIteratorHasNextExpr expression)
          Get the sourceCode attribute of the AbstractCPPGenVisitor object
 java.lang.String getSourceCode(OOFWIteratorOfExpr expression)
          Get the sourceCode attribute of the AbstractCPPGenVisitor object
 java.lang.String getSourceCode(OONewArrayExpr expression)
          Get the sourceCode attribute of the AbstractCPPGenVisitor object
 java.lang.String getSourceCode(OOObjectOfTypeExpr expression)
          Get the sourceCode attribute of the AbstractCPPGenVisitor object
 java.lang.String getSourceCode(OOThrowStatement statement)
          Get the sourceCode attribute of the AbstractCPPGenVisitor object
 java.lang.String getSourceCode(OOTypeCastExpr expression)
          Get the sourceCode attribute of the OOGenVisitor object
 java.lang.String getTypeAsString(FType theType, boolean isPointer)
          Get the uMLTypeAsString attribute of the OOGenVisitor 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.
 void removeYou()
          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, createAttrDeclaration, createClassCommentary, createClassDeclaration, createClassExtendsDeclaration, createClassInterfaceModifier, createCloseBlock, createInitializerDeclaration, createInterfaceDeclaration, createInterfaceExtendsDeclaration, createMethodCommentary, createMethodDeclaration, createMethodParam, createMethodParamList, createNormalFMethodDeclaration, createOpenBlock, entriesOfProgLangTypes, generateClassEndBlock, generateClassStartBlock, generateCloseBlock, generateOpenBlock, generatePackageBegin, generatePackageEnd, getAttrDeclName, getAttrDeclVisibilityString, getClassName, getContainerName, getFromProgLangTypes, getInterfaceName, getMethodDeclName, getMethodDeclVisibilityString, 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, getTypeNameAsString, getTypeNameAsString, getVarName, getVarName, getVisibilityString, hasInProgLangTypes, hasKeyInProgLangTypes, iteratorOfProgLangTypes, keysOfProgLangTypes, removeAllFromProgLangTypes, removeKeyFromProgLangTypes
 
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

AbstractCPPGenVisitor

public AbstractCPPGenVisitor(java.lang.String extender)
Default Constructor

Parameters:
extender - No description provided
Method Detail

getReferenceTemplateName

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

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

getAssocTemplateName

public java.lang.String getAssocTemplateName()
Get the assocTemplateName attribute of the AbstractCPPGenVisitor 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

getMethodName

public java.lang.String getMethodName(OOMethod methodName)
Get the methodName attribute of the OOGenVisitor object

Overrides:
getMethodName in class OOGenVisitor
Parameters:
methodName - No description provided
Returns:
The methodName value

getSourceCode

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

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

getSourceCode

public java.lang.String getSourceCode(OOTypeCastExpr expression)
Get the sourceCode attribute of the OOGenVisitor object

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

getSourceCode

public java.lang.String getSourceCode(OOObjectOfTypeExpr expression)
Get the sourceCode attribute of the AbstractCPPGenVisitor 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 AbstractCPPGenVisitor 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 AbstractCPPGenVisitor 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 AbstractCPPGenVisitor object

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

getSourceCode

public java.lang.String getSourceCode(OONewArrayExpr expression)
Get the sourceCode attribute of the AbstractCPPGenVisitor object

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

getSourceCode

public final java.lang.String getSourceCode(OOFWIteratorHasNextExpr expression)
Get the sourceCode attribute of the AbstractCPPGenVisitor 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 AbstractCPPGenVisitor object

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

getSourceCode

public java.lang.String getSourceCode(OOCallAttrExpr expression)
Get the sourceCode attribute of the OOGenVisitor object

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

getSourceCode

public java.lang.String getSourceCode(OOCallMethodExpr expression)
Get the sourceCode attribute of the OOGenVisitor object

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

getTypeAsString

public java.lang.String getTypeAsString(FType theType,
                                        boolean isPointer)
Get the uMLTypeAsString attribute of the OOGenVisitor object

Overrides:
getTypeAsString in class OOGenVisitor
Parameters:
theType - No description provided
isPointer - No description provided
Returns:
The uMLTypeAsString value

getOOTypeAsString

public java.lang.String getOOTypeAsString(OOContainerType theType,
                                          boolean isBound)
Get the oOTypeAsString attribute of the AbstractCPPGenVisitor object

Overrides:
getOOTypeAsString in class OOGenVisitor
Parameters:
theType - No description provided
isBound - No description provided
Returns:
The oOTypeAsString value

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

removeYou

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

Overrides:
removeYou in class OOGenVisitor

toString

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