Ejemplo n.º 1
0
 public Procedure(string name, IStatementList body)
 {
     Name      = name;
     Body      = body;
     Attribute = new Attribute("procName", Name);
     Modifying = ImplementationFactory.CreateVariableList();
     Using     = ImplementationFactory.CreateVariableList();
     CalledBy  = ImplementationFactory.CreateProcedureList();
     Calling   = ImplementationFactory.CreateProcedureList();
 }
Ejemplo n.º 2
0
 public Statement(int programLine)
 {
     ProgramLine = programLine;
     Attribute   = new Attribute("progLine", ProgramLine.ToString());
     Modifying   = ImplementationFactory.CreateVariableList();
     Using       = ImplementationFactory.CreateVariableList();
     NextedBy    = ImplementationFactory.CreateStatementList();
     Nexting     = ImplementationFactory.CreateStatementList();
     Children    = ImplementationFactory.CreateStatementList();
 }
Ejemplo n.º 3
0
 public IVariableList GetUsedBy(Statement statement)
 {
     if (statement != null)
     {
         return(statement.Using.Copy());
     }
     else
     {
         return(ImplementationFactory.CreateVariableList());
     }
 }
Ejemplo n.º 4
0
 public IVariableList GetUsedBy(Procedure procedure)
 {
     if (procedure != null)
     {
         return(procedure.Using.Copy());
     }
     else
     {
         return(ImplementationFactory.CreateVariableList());
     }
 }
Ejemplo n.º 5
0
        public DesignExtractor()
        {
            Statements    = ImplementationFactory.CreateStatementList();
            Variables     = ImplementationFactory.CreateVariableList();
            Procedures    = ImplementationFactory.CreateProcedureList();
            Constants     = ImplementationFactory.CreateConstantList();
            FollowsTable  = ImplementationFactory.CreateFollowsTable();
            ModifiesTable = ImplementationFactory.CreateModifiesTable();
            ParentTable   = ImplementationFactory.CreateParentTable();
            UsesTable     = ImplementationFactory.CreateUsesTable();
            CallsTable    = ImplementationFactory.CreateCallsTable();
            NextTable     = ImplementationFactory.CreateNextTable();
            AffectsTable  = ImplementationFactory.CreateAffectsTable();

            calls = new Dictionary <Procedure, List <Call> >();
        }
Ejemplo n.º 6
0
 public override IEntityList CreateNewList()
 {
     return(ImplementationFactory.CreateVariableList());
 }