de.uni_paderborn.fujaba.codegen
Class OOLocalVarDeclStatement

java.lang.Object
  extended byde.uni_paderborn.fujaba.codegen.OOStatement
      extended byde.uni_paderborn.fujaba.codegen.OOLocalVarDeclStatement

public class OOLocalVarDeclStatement
extends OOStatement

Class OOLocalVarDeclStatement

Version:
$Revision: 1.17 $
Author:
$Author: schneider $

Field Summary
private  boolean declared
          No comment provided by developer, please add a comment to improve documentation.
private  OOExpression initExpr
          No comment provided by developer, please add a comment to improve documentation.
private  OOVariable objectName
          No comment provided by developer, please add a comment to improve documentation.
private  OOTypeInterface varType
          No comment provided by developer, please add a comment to improve documentation.
 
Fields inherited from class de.uni_paderborn.fujaba.codegen.OOStatement
 
Constructor Summary
private OOLocalVarDeclStatement()
          Default Constructor
  OOLocalVarDeclStatement(OOTypeInterface varType, OOVariable objectName, OOExpression initExpr)
          Constructor for class OOLocalVarDeclStatement
 
Method Summary
 OOExpression getInitExpr()
          Get the value of initExpr.
 OOVariable getObjectName()
          Get the value of objectName.
 java.lang.String getSourceCode(OOGenVisitor visitor)
          Get the sourceCode attribute of the OOLocalVarDeclStatement object
 OOTypeInterface getVarType()
          Get the value of varType.
 boolean isDeclared()
          Get the value of declared.
 void setDeclared(boolean declared)
          Set the value of declared.
 void setInitExpr(OOExpression initExpr)
          Sets the initExpr attribute of the OOLocalVarDeclStatement object
 java.lang.String toString()
          Describe toString method here.
 
Methods inherited from class de.uni_paderborn.fujaba.codegen.OOStatement
add, add, addAll, addAll, getToken, removeYou, setToken, toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

declared

private boolean declared
No comment provided by developer, please add a comment to improve documentation.


varType

private OOTypeInterface varType
No comment provided by developer, please add a comment to improve documentation.


objectName

private OOVariable objectName
No comment provided by developer, please add a comment to improve documentation.


initExpr

private OOExpression initExpr
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

OOLocalVarDeclStatement

private OOLocalVarDeclStatement()
Default Constructor


OOLocalVarDeclStatement

public OOLocalVarDeclStatement(OOTypeInterface varType,
                               OOVariable objectName,
                               OOExpression initExpr)
Constructor for class OOLocalVarDeclStatement

Parameters:
varType - No description provided
objectName - No description provided
initExpr - No description provided
Method Detail

isDeclared

public boolean isDeclared()
Get the value of declared.

Returns:
Value of declared.

setDeclared

public void setDeclared(boolean declared)
Set the value of declared.

Parameters:
declared - Value to assign to declared.

getVarType

public OOTypeInterface getVarType()
Get the value of varType.

Returns:
Value of varType.

getObjectName

public OOVariable getObjectName()
Get the value of objectName.

Returns:
Value of objectName.

getInitExpr

public OOExpression getInitExpr()
Get the value of initExpr.

Returns:
Value of initExpr.

setInitExpr

public void setInitExpr(OOExpression initExpr)
Sets the initExpr attribute of the OOLocalVarDeclStatement object

Parameters:
initExpr - The new initExpr value

getSourceCode

public java.lang.String getSourceCode(OOGenVisitor visitor)
Get the sourceCode attribute of the OOLocalVarDeclStatement object

Specified by:
getSourceCode in class OOStatement
Parameters:
visitor - No description provided
Returns:
The sourceCode value

toString

public java.lang.String toString()
Description copied from class: OOStatement
Describe toString method here.

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