Package com.antlersoft.analyzer

Examples of com.antlersoft.analyzer.IndexAnalyzeDB


  }

  public Object transformSingleObject(DataSource source, Object toTransform) {
    String name=(String)toTransform;
    String array_references="";
    IndexAnalyzeDB db=(IndexAnalyzeDB)source;
    for ( int array_offset; ( array_offset=name.lastIndexOf("[]"))!= -1;)
    {
      name=name.substring( 0, array_offset);
      array_references="["+array_references;
    }
    String base_type=DBType.TypeStringMap.userToInternal( name);
    DBType found=null;
    try
    {
      if ( base_type==null)
      {
        DBClass referenced=(DBClass)db.findWithIndex( DBClass.CLASS_NAME_INDEX, name);
        if ( referenced!=null)
        {
          found=DBType.getFromClass( db, referenced);
          if ( array_references.length()>0)
            found=(DBType)db.findWithIndex( DBType.TYPE_KEY_INDEX,
                array_references+found.getTypeString());
        }
      }
      else
        found=(DBType)db.findWithIndex( DBType.TYPE_KEY_INDEX, array_references+base_type);
    }
    catch ( Exception e)
    {
     
    }
View Full Code Here


  public synchronized IndexAnalyzeDB getDB()
  {
    if ( m_db==null)
    {
     
      m_db=new IndexAnalyzeDB();
      try
      {
        m_logger.fine ( "Opening db");
        m_db.setUseMapped(true);
        m_db.openDB( new File("/mnt/external1/scratch/eclipse_eclipse.pj"));
View Full Code Here

    ProjectAnalyzer( BBQNode node)
        throws Exception
    {
        project=(JBProject)node.getProject();
        db=new IndexAnalyzeDB();
        String dbPath=BBQPathsGroup.pathsProperty.getValue( node);
        File analyzerFile;
        if ( dbPath.length()==0)
        {
            analyzerFile=new File(
View Full Code Here

              {
                _pathChanged=true;
              }
          }
        });
        m_db=new IndexAnalyzeDB();
        openDBAtCurrentPath();
      }
    }
    catch ( Exception e)
    {
View Full Code Here

TOP

Related Classes of com.antlersoft.analyzer.IndexAnalyzeDB

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.