de.uni_paderborn.fujaba.codegen
Class UMLFileOOHandler

java.lang.Object
  extended byde.uni_paderborn.fujaba.codegen.CodeGenStrategyHandler
      extended byde.uni_paderborn.fujaba.codegen.OOGenStrategyHandler
          extended byde.uni_paderborn.fujaba.codegen.UMLFileOOHandler

public class UMLFileOOHandler
extends OOGenStrategyHandler

Class UMLFileOOHandler

Version:
$Revision: 1.33.2.2 $
Author:
$Author: cschneid $

Field Summary
static java.lang.String CREATE_IMPORTS_FUNCTION
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String FRAGMENT_CLASSES
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String FRAGMENT_FILE_FOOTER
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String FRAGMENT_FILE_HEADER
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String FRAGMENT_IMPORTS
          No comment provided by developer, please add a comment to improve documentation.
 
Fields inherited from class de.uni_paderborn.fujaba.codegen.OOGenStrategyHandler
AT_POST_VARIABLE, COLLAB_STAT_BEGIN, COLLAB_STAT_END, FIND_LOWER_BOUND_ELSE_CLAUSE, FIND_LOWER_BOUND_ELSE_IF_CLAUSE, FIND_LOWER_BOUND_IF_CLAUSE, I_MULTILINK_SEARCH_NORM_BOTTOM, I_MULTILINK_SEARCH_NORM_TOP, I_MULTILINK_SEARCH_OPTIONAL_BOTTOM, I_MULTILINK_SEARCH_OPTIONAL_TOP, I_MULTILINK_SEARCH_SET, ISOMORPHIC_BINDING, ISOMORPHIC_BINDING_BODY, ISOMORPHIC_BINDING_SET, LINK_CHECK_BETWEEN_SETS, LINK_CHECK_TO_MANY, LINK_CHECK_TO_ONE, LINK_CHECK_TO_SET, LINK_CREATE, LINK_CREATE_SET, LINK_CREATE_SET_TOP, LINK_DELETE, LINK_DELETE_SET, LINK_SEARCH_TO_MANY_BOTTOM, LINK_SEARCH_TO_MANY_TOP, LINK_SEARCH_TO_ONE, LINK_SEARCH_TO_SET_BOTTOM, LINK_SEARCH_TO_SET_TOP, MULTILINK_CHECK, MULTILINK_CHECK_FIRST, MULTILINK_CHECK_LAST, MULTILINK_INSERT_OBJECT, MULTILINK_SEARCH_BOUND_TO_UNBOUND, MULTILINK_SEARCH_FIRST, MULTILINK_SEARCH_LAST, MULTILINK_SEARCH_UNBOUND_TO_BOUND, OBJECT_CREATE, OBJECT_DELETE, PATH_EXPR_CREATE, PRECONDITION_CHECK, RETURN_STAT, STORY_DIAGRAM_BOTTOM, STORY_DIAGRAM_TOP, TYPE_CAST, UML_ATTR_EXPR_PAIR
 
Constructor Summary
UMLFileOOHandler()
          Default Constructor
 
Method Summary
static ImportFragment findImportFragment(CodeGenVisitor visitor)
          No comment provided by developer, please add a comment to improve documentation.
 void generateFFileFooter(FFile theFile)
          No comment provided by developer, please add a comment to improve documentation.
 void generateFFileHeader(FFile theFile)
          No comment provided by developer, please add a comment to improve documentation.
 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 generateImplicitImports(FFile umlFile, ImportFragment importFrag)
          No comment provided by developer, please add a comment to improve documentation.
 void generateImportList(FFile theFile)
          No comment provided by developer, please add a comment to improve documentation.
 OOGenToken generateSourceCode(FElement incr, OOGenToken prevToken, java.lang.Object[] param)
          No comment provided by developer, please add a comment to improve documentation.
 boolean isResponsible(FElement incr)
          Get the responsible attribute of the UMLFileOOHandler object
 boolean necessaryToCreateClass(FClass tmpClass)
          No comment provided by developer, please add a comment to improve documentation.
 boolean necessaryToCreateFile(FFile theFile)
          No comment provided by developer, please add a comment to improve documentation.
 boolean needToken()
          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.CodeGenStrategyHandler
appendOOStatement, appendOOStatement, appendOOStatement, generate, generate, generate, generate, generateCode, generateSourceCode, getChainMaster, getClientOfChain, getPrevHandler, getSuccessor, incrNeedsToken, isContinueChain, isResponsible, setChainMaster, setContinueChain, setPrevHandler, setSuccessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FRAGMENT_CLASSES

public static final java.lang.String FRAGMENT_CLASSES
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

FRAGMENT_FILE_HEADER

public static final java.lang.String FRAGMENT_FILE_HEADER
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

FRAGMENT_FILE_FOOTER

public static final java.lang.String FRAGMENT_FILE_FOOTER
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

FRAGMENT_IMPORTS

public static final java.lang.String FRAGMENT_IMPORTS
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

CREATE_IMPORTS_FUNCTION

public static final java.lang.String CREATE_IMPORTS_FUNCTION
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values
Constructor Detail

UMLFileOOHandler

public UMLFileOOHandler()
Default Constructor

Method Detail

isResponsible

public boolean isResponsible(FElement incr)
Get the responsible attribute of the UMLFileOOHandler object

Overrides:
isResponsible in class CodeGenStrategyHandler
Parameters:
incr - No description provided
Returns:
The responsible value

needToken

public final boolean needToken()
No comment provided by developer, please add a comment to improve documentation.

Specified by:
needToken in class CodeGenStrategyHandler
Returns:
No description provided

generateSourceCode

public OOGenToken generateSourceCode(FElement incr,
                                     OOGenToken prevToken,
                                     java.lang.Object[] param)
No comment provided by developer, please add a comment to improve documentation.

Overrides:
generateSourceCode in class CodeGenStrategyHandler
Parameters:
incr - No description provided
prevToken - No description provided
param - No description provided
Returns:
No description provided

generateFFileHeader

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

Parameters:
theFile - No description provided

generateFFileFooter

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

Parameters:
theFile - No description provided

generateFPackageBegin

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

Parameters:
theFile - No description provided

generateFPackageEnd

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

Parameters:
theFile - No description provided

generateImportList

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

Parameters:
theFile - No description provided

necessaryToCreateFile

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

Parameters:
theFile - No description provided
Returns:
No description provided

necessaryToCreateClass

public boolean necessaryToCreateClass(FClass tmpClass)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
tmpClass - No description provided
Returns:
No description provided

findImportFragment

public static ImportFragment findImportFragment(CodeGenVisitor visitor)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
visitor - No description provided
Returns:
No description provided

generateImplicitImports

public void generateImplicitImports(FFile umlFile,
                                    ImportFragment importFrag)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
umlFile - No description provided
importFrag - No description provided

toString

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