de.uni_paderborn.fujaba.codegen
Class JavaGenVisitor

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

public class JavaGenVisitor
extends OOGenVisitor

Class JavaGenVisitor

Version:
$Revision: 1.38 $
Author:
$Author: creckord $

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
JavaGenVisitor()
          Constructor for class JavaGenVisitor
JavaGenVisitor(java.lang.String extender)
          Default Constructor
 
Method Summary
 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 JavaGenVisitor object
 java.lang.String getAttrDeclName(FAttr theAttr)
          Get the attrDeclName attribute of the JavaGenVisitor 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 JavaGenVisitor object
 java.lang.String getReferenceTemplateName()
          Get the referenceTemplateName attribute of the JavaGenVisitor object
 java.lang.String getSourceCode(OOClassOfVariableExpr expression)
          Get the sourceCode attribute of the JavaGenVisitor object
 java.lang.String getSourceCode(OOFWIteratorGetExpr expression)
          Get the sourceCode attribute of the JavaGenVisitor object
 java.lang.String getSourceCode(OOFWIteratorGotoNextExpr expression)
          Get the sourceCode attribute of the JavaGenVisitor object
 java.lang.String getSourceCode(OOFWIteratorHasNextExpr expression)
          Get the sourceCode attribute of the JavaGenVisitor object
 java.lang.String getSourceCode(OOFWIteratorOfExpr expression)
          Get the sourceCode attribute of the JavaGenVisitor object
 java.lang.String getSourceCode(OONewArrayExpr expression)
          Get the sourceCode attribute of the JavaGenVisitor object
 java.lang.String getSourceCode(OOObjectOfTypeExpr expression)
          Get the sourceCode attribute of the JavaGenVisitor object
 java.lang.String getSourceCode(OOThrowStatement statement)
          Get the sourceCode attribute of the JavaGenVisitor 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, createAttrDeclaration, createClassCommentary, createClassDeclaration, createClassExtendsDeclaration, createClassInterfaceModifier, createCloseBlock, createInitializerDeclaration, createInterfaceDeclaration, createInterfaceExtendsDeclaration, createMethodCommentary, createMethodDeclaration, createMethodParam, createMethodParamList, createNormalFMethodDeclaration, createOpenBlock, entriesOfProgLangTypes, generateCloseBlock, generateOpenBlock, getAttrDeclVisibilityString, getClassName, getContainerName, getFromProgLangTypes, getInterfaceName, getMethodDeclVisibilityString, 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, 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

JavaGenVisitor

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

Parameters:
extender - No description provided

JavaGenVisitor

public JavaGenVisitor()
Constructor for class JavaGenVisitor

Method Detail

getReferenceTemplateName

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

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

getAssocTemplateName

public java.lang.String getAssocTemplateName()
Get the assocTemplateName attribute of the JavaGenVisitor 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 - No description provided
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 JavaGenVisitor object

Specified by:
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 JavaGenVisitor 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 JavaGenVisitor 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 JavaGenVisitor 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 JavaGenVisitor 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 JavaGenVisitor 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 JavaGenVisitor object

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

getSourceCode

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

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

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

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

getAttrDeclName

public java.lang.String getAttrDeclName(FAttr theAttr)
Get the attrDeclName attribute of the JavaGenVisitor 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 JavaGenVisitor object

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

toString

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