entities
Class Parameter

java.lang.Object
  extended byentities.Parameter

public class Parameter
extends java.lang.Object

The Parameter class represents the information about the method/functions parameters.


Constructor Summary
Parameter()
          Construct a Parameter object
Parameter(java.lang.String name, java.lang.String type)
          Construct a Parameter object
 
Method Summary
static void createTable(java.sql.Connection dbConnection)
           
static void delete(java.sql.Connection dbConnection, int id)
           
 java.lang.String getFile()
           
 java.lang.String getName()
           
 ScopeManager getParent()
           
 int getPosition()
           
 java.lang.String getType()
           
 void insert(java.sql.Connection dbConnection, int sourceId, int sourceType)
           
 boolean isConst()
           
 void print(java.lang.String indentation)
          Print all information in a Parameter object
 void setFile(java.lang.String file)
           
 void setName(java.lang.String name)
           
 void setPosition(int position)
           
 void setScope(ScopeManager parentScope)
           
 void setType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameter

public Parameter(java.lang.String name,
                 java.lang.String type)
Construct a Parameter object

Parameters:
name - Name of the Parameter
type - Type of Parameter

Parameter

public Parameter()
Construct a Parameter object

Method Detail

setName

public void setName(java.lang.String name)

setType

public void setType(java.lang.String type)

setFile

public void setFile(java.lang.String file)
Parameters:
file - represent the name of the file in which the param has been found

setPosition

public void setPosition(int position)
Parameters:
position - represent the line in which the parameter has been found

setScope

public void setScope(ScopeManager parentScope)

getName

public java.lang.String getName()
Returns:
the String containing the name of the parameter or an empty String if the parameter name is not present

getType

public java.lang.String getType()
Returns:
the String containing the type of the parameter

getFile

public java.lang.String getFile()
Returns:
the String containing the file in which the parameter is used

getPosition

public int getPosition()
Returns:
the position of the parameter in the file

getParent

public ScopeManager getParent()
Returns:
the ScopeManager object corresponding to the method or function

isConst

public boolean isConst()
Returns:
true if the parameter is constant

print

public void print(java.lang.String indentation)
Print all information in a Parameter object


delete

public static void delete(java.sql.Connection dbConnection,
                          int id)
                   throws java.sql.SQLException
Throws:
java.sql.SQLException

createTable

public static void createTable(java.sql.Connection dbConnection)
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

insert

public void insert(java.sql.Connection dbConnection,
                   int sourceId,
                   int sourceType)
            throws java.sql.SQLException
Throws:
java.sql.SQLException