com.joanju.cg.core
Class Checkvals

java.lang.Object
  extended by com.joanju.cg.core.Checkvals

public class Checkvals
extends java.lang.Object


Constructor Summary
Checkvals()
           
Checkvals(AppIMonitor monitor)
           
 
Method Summary
static void add(int cuid, int address)
          Add checkval record for individual instruction.
 void addCached(int cuid, int address)
          Add checkval record for individual instruction.
static void addCallname(int procNameID)
          Add checkvals for a callname.
static void addCallRefsToCu(int cuid)
          Add all call references to a CU.
static void addCuAddresses(int cuID, java.util.Collection<java.lang.Integer> addresses)
          Add checkval records for multiple individual addresses in one compile unit.
static void addGlobalNewval(int id, int val)
          Add a new val, as far as one CU is concerned.
static void addGlobalNewvals(int id, java.util.HashSet<java.lang.Integer> values)
          Add new values, as far as one CU is concerned.
static void addGlobalRecalc(int id)
          Add an instruction to recalculate all possible values for a global.
static void addGlobalWhereUsedRebuild(int id)
          Check every where-used on every CU reference to this [global] shared variable.
static Checkvals createCache()
          Pseudo-constructor.
 java.util.HashSet<Xref> getCache()
           
 int passPrepare()
           
 void passRun()
           
 void run()
          Loops through passes without a monitor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Checkvals

public Checkvals()

Checkvals

public Checkvals(AppIMonitor monitor)
Method Detail

add

public static void add(int cuid,
                       int address)
                throws java.sql.SQLException,
                       java.io.IOException
Add checkval record for individual instruction.

Throws:
java.sql.SQLException
java.io.IOException

addCached

public void addCached(int cuid,
                      int address)
               throws java.sql.SQLException,
                      java.io.IOException
Add checkval record for individual instruction.

Throws:
java.sql.SQLException
java.io.IOException

addCallname

public static void addCallname(int procNameID)
                        throws java.sql.SQLException
Add checkvals for a callname. All calls to this call name will be checked. All calls to a name need to be checked if a session super procedure name is added to or dropped from the system.

Throws:
java.sql.SQLException

addCallRefsToCu

public static void addCallRefsToCu(int cuid)
                            throws java.sql.SQLException,
                                   java.io.IOException
Add all call references to a CU. If a CU's set of local super procedures change, then all call references to the CU need to be revisited. This is because of RUN p IN h, where p is not in h, but is in one of h's local supers. Even though the call goes to the super, our CallinInstr does create an xref link to h so that we have a record of this reference for these updates.

Throws:
java.sql.SQLException
java.io.IOException

addCuAddresses

public static void addCuAddresses(int cuID,
                                  java.util.Collection<java.lang.Integer> addresses)
                           throws java.sql.SQLException,
                                  java.io.IOException
Add checkval records for multiple individual addresses in one compile unit.

Throws:
java.sql.SQLException
java.io.IOException

addGlobalNewval

public static void addGlobalNewval(int id,
                                   int val)
                            throws java.sql.SQLException,
                                   java.io.IOException
Add a new val, as far as one CU is concerned. The value may already be contributed by another CU.

Throws:
java.sql.SQLException
java.io.IOException

addGlobalNewvals

public static void addGlobalNewvals(int id,
                                    java.util.HashSet<java.lang.Integer> values)
                             throws java.sql.SQLException,
                                    java.io.IOException
Add new values, as far as one CU is concerned. The values may already be contributed by another CU.

Throws:
java.sql.SQLException
java.io.IOException

addGlobalRecalc

public static void addGlobalRecalc(int id)
                            throws java.sql.SQLException,
                                   java.io.IOException
Add an instruction to recalculate all possible values for a global.

Throws:
java.sql.SQLException
java.io.IOException

addGlobalWhereUsedRebuild

public static void addGlobalWhereUsedRebuild(int id)
                                      throws java.sql.SQLException,
                                             java.io.IOException
Check every where-used on every CU reference to this [global] shared variable.

Throws:
java.sql.SQLException
java.io.IOException

createCache

public static Checkvals createCache()
Pseudo-constructor.


getCache

public java.util.HashSet<Xref> getCache()

passPrepare

public int passPrepare()
                throws java.lang.Exception
Throws:
java.lang.Exception

passRun

public void passRun()
             throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

run

public void run()
         throws java.lang.Exception
Loops through passes without a monitor.

Throws:
java.lang.Exception


Copyright © 2008 Joanju Software. All Rights Reserved.