de.uni_paderborn.fujaba.codegen
Class OOGenStrategyClient

java.lang.Object
  extended byde.uni_paderborn.fujaba.codegen.CodeGenStrategy
      extended byde.uni_paderborn.fujaba.codegen.OOGenStrategyClient

public class OOGenStrategyClient
extends CodeGenStrategy

Class OOGenStrategyClient

Version:
$Revision: 1.56 $

Associations

                      0..1          0..1
 OOGenStrategyClient -------------------- OOGenStrategyHandler
                      client     handler

                      0..1           0..1
 OOGenStrategyClient --------------------- OOGenFunction
                      client     function
 
Author:
$Author: lowende $

Field Summary
static int HL_SDM
          Describe constant HL_SDM here.
 
Constructor Summary
OOGenStrategyClient()
          Default Constructor
 
Method Summary
 void appendFAttrCommentary(java.lang.String comment)
          No comment provided by developer, please add a comment to improve documentation.
 void appendFAttrDeclaration(java.lang.String decl)
          No comment provided by developer, please add a comment to improve documentation.
 void appendFClassCommentary(java.lang.String comment)
          No comment provided by developer, please add a comment to improve documentation.
 void appendFClassDeclaration(java.lang.String declString)
          No comment provided by developer, please add a comment to improve documentation.
 void appendFMethodBody(java.lang.String body)
          No comment provided by developer, please add a comment to improve documentation.
 void appendFMethodCommentary(java.lang.String theCommentary)
          No comment provided by developer, please add a comment to improve documentation.
 void appendFMethodDeclaration(java.lang.String decl)
          No comment provided by developer, please add a comment to improve documentation.
 OOStatement[] closeHideTag()
          Describe closeHideTag method here.
 OOStatement[] constraintText(OOExpression condition, boolean assertStmt)
          Describe constraintText method here.
 OOStatement[] constraintText(java.lang.String condition, boolean assertStmt)
          Describe constraintText method here.
 OOStatement[] constraintTextWithComment(OOExpression condition, java.lang.String comment, boolean assertStmt)
          Describe constraintTextWithComment method here.
 OOStatement[] constraintTextWithComment(java.lang.String condition, java.lang.String comment, boolean assertStmt)
          Describe constraintTextWithComment method here.
 java.lang.String createClassDeclaration(FClass theClass)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String createCloseBlock(java.lang.String blockType)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String createFAttrCommentary(FCommentary theCommentary)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String createFAttrDeclaration(FAttr theAttr)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String createFClassCommentary(FCommentary theCommentary)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String createFClassInterfaceModifier(FClass theClass)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String createFMethodCommentary(FCommentary theCommentary)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String createFMethodDeclaration(FMethod theMethod)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String createInterfaceDeclaration(FClass theClass)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String createOpenBlock(java.lang.String blockType)
          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.
 void generateCloseBlock(java.lang.String blockType)
          No comment provided by developer, please add a comment to improve documentation.
 void generateFPackage(FPackage thePackage)
          generate sourcecode for given FPackage and all existing subpackages
 void generateFPackageBegin(FFile theFile)
          No comment provided by developer, please add a comment to improve documentation.
 void generateFPackageEnd(FFile theFile)
          No comment provided by developer, please add a comment to improve documentation.
 void generateFProject(FProject theProject)
          generate sourcecode for complete FProject theProject
 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 generateOpenBlock(java.lang.String blockType)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String getAttrDeclName(FAttr theAttr)
          Get the attrDeclName attribute of the OOGenStrategyClient object
 java.lang.String getClassName(FClass theClass)
          Get the className attribute of the OOGenStrategyClient object
 OOGenVisitor getCurrentOOGenVisitor()
          Get the currentOOGenVisitor attribute of the OOGenStrategyClient object
 java.lang.String getFAttrDeclVisibilityString(FAttr theAttr)
          Get the uMLAttrDeclVisibilityString attribute of the OOGenStrategyClient object
 java.lang.String getFMethodDeclVisibilityString(FMethod theMethod)
          Get the uMLMethodDeclVisibilityString attribute of the OOGenStrategyClient object
 java.lang.String getInterfaceName(FClass theClass)
          Get the interfaceName attribute of the OOGenStrategyClient object
 java.lang.String getMethodDeclName(FMethod theMethod)
          Get the methodDeclName attribute of the OOGenStrategyClient object
 java.lang.String getProgLangType(FBaseTypes theType)
          Get the progLangType attribute of the OOGenStrategyClient object
 java.lang.String getVisibilityString(FDeclaration theDeclaration)
          Get the visibilityString attribute of the OOGenStrategyClient object
 java.lang.String getVisibilityString(int visibility)
          Get the visibilityString attribute of the OOGenStrategyClient object
 boolean hideEnabled()
          Describe hideEnabled method here.
 OOStatement[] memoField(java.lang.String code)
          Describe memoField method here.
 OOExpression methodFlowCondition(boolean positive)
          No comment provided by developer, please add a comment to improve documentation.
 OOStatement[] methodFlowDo(java.lang.String comment)
          No comment provided by developer, please add a comment to improve documentation.
 OOStatement[] methodFlowElse()
          No comment provided by developer, please add a comment to improve documentation.
 OOStatement[] methodFlowForEachEnd()
          No comment provided by developer, please add a comment to improve documentation.
 OOStatement[] methodFlowForEachStart()
          No comment provided by developer, please add a comment to improve documentation.
 OOStatement[] methodFlowIfThen(java.lang.String comment, OOExpression expr)
          No comment provided by developer, please add a comment to improve documentation.
 OOStatement[] methodFlowWhileFoot(OOExpression condition)
          No comment provided by developer, please add a comment to improve documentation.
 OOStatement[] methodFlowWhileHead(java.lang.String comment, OOExpression condition)
          No comment provided by developer, please add a comment to improve documentation.
 void newLine()
          No comment provided by developer, please add a comment to improve documentation.
 OOStatement[] openHideTag(int nr)
          Describe openHideTag method here.
 OOStatement[] setInternalVariables(boolean modifiedSetItems)
          Describe setInternalVariables method here.
 java.lang.String toString()
          Describe toString method here.
 
Methods inherited from class de.uni_paderborn.fujaba.codegen.CodeGenStrategy
addToBeforeHandlerChain, addToCodeGenVisitor, addToHandlerChain, append, append, appendFunction, appendHandler, checkTokenList, createCommentary, createFiles, createIndentString, createLineCommentary, entriesOfCodeGenVisitor, generateCode, generateFElement, generateFElement, generateSourceCodeFor, generateSourceCodeFor, generateSourceCodeFor, getCodeGenFactory, getCurrentBuffer, getCurrentFactory, getCurrentVisitor, getFileName, getFilePath, getFirstOfHandlerChain, getFromCodeGenVisitor, getFunction, getHandlerChainAt, getLastOfHandlerChain, getName, getNextIndexOfHandlerChain, getNextOfHandlerChain, getPreviousIndexOfHandlerChain, getPreviousOfHandlerChain, handlerGenerate, handlerGenerate, handlerIncrNeedsToken, hasInCodeGenVisitor, hasInHandlerChain, hasKeyInCodeGenVisitor, indentText, indentText, indexOfHandlerChain, initBuffer, initVisitor, insertFunction, insertHandler, isAfterOfHandlerChain, isBeforeOfHandlerChain, iteratorOfCodeGenVisitor, iteratorOfHandlerChain, iteratorOfHandlerChain, keysOfCodeGenVisitor, lastIndexOfHandlerChain, removeAllFromCodeGenVisitor, removeAllFromHandlerChain, removeFromCodeGenVisitor, removeFromHandlerChain, removeKeyFromCodeGenVisitor, removeYou, setCodeGenFactory, setCurrentFactory, setCurrentVisitor, setFunction, setName, sizeOfCodeGenVisitor, sizeOfHandlerChain, writeFiles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HL_SDM

public static final int HL_SDM
Describe constant HL_SDM here.

See Also:
Constant Field Values
Constructor Detail

OOGenStrategyClient

public OOGenStrategyClient()
Default Constructor

Method Detail

generateFProject

public final void generateFProject(FProject theProject)
generate sourcecode for complete FProject theProject

Specified by:
generateFProject in class CodeGenStrategy
Parameters:
theProject - the given FProject

generateFPackage

public final void generateFPackage(FPackage thePackage)
generate sourcecode for given FPackage and all existing subpackages

Parameters:
thePackage - the given FPackage

methodFlowForEachStart

public OOStatement[] methodFlowForEachStart()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

methodFlowForEachEnd

public OOStatement[] methodFlowForEachEnd()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

methodFlowWhileHead

public OOStatement[] methodFlowWhileHead(java.lang.String comment,
                                         OOExpression condition)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
comment - No description provided
condition - No description provided
Returns:
No description provided

methodFlowDo

public OOStatement[] methodFlowDo(java.lang.String comment)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
comment - No description provided
Returns:
No description provided

methodFlowWhileFoot

public OOStatement[] methodFlowWhileFoot(OOExpression condition)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
condition - No description provided
Returns:
No description provided

methodFlowIfThen

public OOStatement[] methodFlowIfThen(java.lang.String comment,
                                      OOExpression expr)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
comment - No description provided
expr - No description provided
Returns:
No description provided

methodFlowElse

public OOStatement[] methodFlowElse()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

methodFlowCondition

public OOExpression methodFlowCondition(boolean positive)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
positive - No description provided
Returns:
No description provided

hideEnabled

public boolean hideEnabled()
Describe hideEnabled method here.

Returns:
a boolean value

openHideTag

public OOStatement[] openHideTag(int nr)
Describe openHideTag method here.

Parameters:
nr - an int value
Returns:
an OOStatement[] value

closeHideTag

public OOStatement[] closeHideTag()
Describe closeHideTag method here.

Returns:
an OOStatement[] value

setInternalVariables

public OOStatement[] setInternalVariables(boolean modifiedSetItems)
Describe setInternalVariables method here.

Parameters:
modifiedSetItems - a boolean value
Returns:
an OOStatement[] value

constraintText

public OOStatement[] constraintText(OOExpression condition,
                                    boolean assertStmt)
Describe constraintText method here.

Parameters:
condition - an OOExpression value
assertStmt - No description provided
Returns:
an OOStatement[] value

constraintText

public OOStatement[] constraintText(java.lang.String condition,
                                    boolean assertStmt)
Describe constraintText method here.

Parameters:
condition - a String value
assertStmt - No description provided
Returns:
an OOStatement[] value

constraintTextWithComment

public OOStatement[] constraintTextWithComment(OOExpression condition,
                                               java.lang.String comment,
                                               boolean assertStmt)
Describe constraintTextWithComment method here.

Parameters:
condition - an OOExpression value
comment - a String value
assertStmt - No description provided
Returns:
an OOStatement[] value

constraintTextWithComment

public OOStatement[] constraintTextWithComment(java.lang.String condition,
                                               java.lang.String comment,
                                               boolean assertStmt)
Describe constraintTextWithComment method here.

Parameters:
condition - a String value
comment - a String value
assertStmt - No description provided
Returns:
an OOStatement[] value

memoField

public OOStatement[] memoField(java.lang.String code)
Describe memoField method here.

Parameters:
code - a String value
Returns:
an OOStatement[] value

generateImportClass

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

Parameters:
theClass - No description provided
Returns:
No description provided

generateImportPackage

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

Parameters:
thePackage - No description provided
Returns:
No description provided

generateFPackageBegin

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

Parameters:
theFile - No description provided

generateFPackageEnd

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

Parameters:
theFile - No description provided

generateClassStartBlock

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


generateClassEndBlock

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


newLine

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


generateOpenBlock

public void generateOpenBlock(java.lang.String blockType)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
blockType - No description provided

generateCloseBlock

public void generateCloseBlock(java.lang.String blockType)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
blockType - No description provided

createOpenBlock

public java.lang.String createOpenBlock(java.lang.String blockType)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
blockType - No description provided
Returns:
No description provided

createCloseBlock

public java.lang.String createCloseBlock(java.lang.String blockType)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
blockType - No description provided
Returns:
No description provided

createInterfaceDeclaration

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

Parameters:
theClass - No description provided
Returns:
No description provided

createClassDeclaration

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

Parameters:
theClass - No description provided
Returns:
No description provided

createFClassCommentary

public java.lang.String createFClassCommentary(FCommentary theCommentary)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
theCommentary - No description provided
Returns:
No description provided

createFAttrCommentary

public java.lang.String createFAttrCommentary(FCommentary theCommentary)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
theCommentary - No description provided
Returns:
No description provided

createFMethodCommentary

public java.lang.String createFMethodCommentary(FCommentary theCommentary)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
theCommentary - No description provided
Returns:
No description provided

createFClassInterfaceModifier

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

Parameters:
theClass - No description provided
Returns:
No description provided

createFAttrDeclaration

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

Parameters:
theAttr - No description provided
Returns:
No description provided

createFMethodDeclaration

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

Parameters:
theMethod - No description provided
Returns:
No description provided

appendFClassCommentary

public void appendFClassCommentary(java.lang.String comment)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
comment - No description provided

appendFClassDeclaration

public void appendFClassDeclaration(java.lang.String declString)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
declString - No description provided

appendFAttrDeclaration

public void appendFAttrDeclaration(java.lang.String decl)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
decl - No description provided

appendFAttrCommentary

public void appendFAttrCommentary(java.lang.String comment)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
comment - No description provided

appendFMethodCommentary

public void appendFMethodCommentary(java.lang.String theCommentary)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
theCommentary - No description provided

appendFMethodDeclaration

public void appendFMethodDeclaration(java.lang.String decl)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
decl - No description provided

appendFMethodBody

public void appendFMethodBody(java.lang.String body)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
body - No description provided

getInterfaceName

public java.lang.String getInterfaceName(FClass theClass)
Get the interfaceName attribute of the OOGenStrategyClient object

Parameters:
theClass - No description provided
Returns:
The interfaceName value

getClassName

public java.lang.String getClassName(FClass theClass)
Get the className attribute of the OOGenStrategyClient object

Parameters:
theClass - No description provided
Returns:
The className value

getAttrDeclName

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

Parameters:
theAttr - No description provided
Returns:
The attrDeclName value

getMethodDeclName

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

Parameters:
theMethod - No description provided
Returns:
The methodDeclName value

getProgLangType

public java.lang.String getProgLangType(FBaseTypes theType)
Get the progLangType attribute of the OOGenStrategyClient object

Parameters:
theType - No description provided
Returns:
The progLangType value

getFAttrDeclVisibilityString

public java.lang.String getFAttrDeclVisibilityString(FAttr theAttr)
Get the uMLAttrDeclVisibilityString attribute of the OOGenStrategyClient object

Parameters:
theAttr - No description provided
Returns:
The uMLAttrDeclVisibilityString value

getFMethodDeclVisibilityString

public java.lang.String getFMethodDeclVisibilityString(FMethod theMethod)
Get the uMLMethodDeclVisibilityString attribute of the OOGenStrategyClient object

Parameters:
theMethod - No description provided
Returns:
The uMLMethodDeclVisibilityString value

getVisibilityString

public java.lang.String getVisibilityString(FDeclaration theDeclaration)
Get the visibilityString attribute of the OOGenStrategyClient object

Parameters:
theDeclaration - No description provided
Returns:
The visibilityString value

getVisibilityString

public java.lang.String getVisibilityString(int visibility)
Get the visibilityString attribute of the OOGenStrategyClient object

Parameters:
visibility - No description provided
Returns:
The visibilityString value

getCurrentOOGenVisitor

public OOGenVisitor getCurrentOOGenVisitor()
Get the currentOOGenVisitor attribute of the OOGenStrategyClient object

Returns:
The currentOOGenVisitor value

toString

public java.lang.String toString()
Describe toString method here.

Overrides:
toString in class CodeGenStrategy
Returns:
short string representation of current object