com.joanju.cg.core
Class CgFileUtils

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

public class CgFileUtils
extends java.lang.Object


Constructor Summary
CgFileUtils()
           
 
Method Summary
static java.io.File findCuOnPropath(java.lang.String lowername)
          Search for a compile unit on the propath, given a lowercase string from callgraph's string table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CgFileUtils

public CgFileUtils()
Method Detail

findCuOnPropath

public static java.io.File findCuOnPropath(java.lang.String lowername)
                                    throws java.sql.SQLException,
                                           java.io.IOException
Search for a compile unit on the propath, given a lowercase string from callgraph's string table. This takes care of a few of the whacky things that can be done, like: "RUN yada", where yada.r might be compiled from "yada", "yada.p", "yada.P", "yada.w", "yada.W". Also deals with .r extension in the call like "RUN yada.r". Uses the cufile table, rather than the OS, since callgraph only indexes lowercase string but on unixes filenames are case sensitive. (i.e. file.exists() would work for case mismatch on Windows but not on unix.)

Parameters:
lowername - As found in the source code and then stored lowercase in the string table.
Throws:
java.sql.SQLException
java.io.IOException


Copyright © 2008 Joanju Software. All Rights Reserved.