com.joanju.cgs
Class AnalystParseUnit

java.lang.Object
  extended by org.prorefactor.treeparser.ParseUnit
      extended by com.joanju.cgs.AnalystParseUnit

public class AnalystParseUnit
extends ParseUnit

Extends ParseUnit for use in Analyst.


Field Summary
 
Fields inherited from class org.prorefactor.treeparser.ParseUnit
CONNECTED, DEFAULT, DISCONNECTED, file, pub, refpack, style
 
Method Summary
static AnalystParseUnit create(int cuid)
          Creator loads the PUB without checking any time stamps.
 java.util.ArrayList<FilePosition> fetchSourceStack(int nodeNum)
          Fetch the source file (include) stack for a node in the CU.
 int getCuid()
           
 MacroRef[] getMacroRefs()
          Gets the local copy of getMacroSourceArray().
 JPNode[] getNodeArray()
          Gets the local copy of TreeUtils.nodeArray(getTopNode()).
 java.lang.String[] getRelFileIndex()
          Similar to a ParseUnit fileIndex, but has relative paths in the entries.
 void writeSourceStack(java.lang.StringBuilder out, int nodenum)
          Write XML sourcestack for a node.
 
Methods inherited from class org.prorefactor.treeparser.ParseUnit
getFile, getFileIndex, getMacroGraph, getMacroSourceArray, getPUB, getRootScope, getTopNode, loadOrBuildPUB, parse, setPUB, setRootScope, setTopNode, treeParser, treeParser01, treeParser01
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static AnalystParseUnit create(int cuid)
                               throws RefactorException,
                                      java.sql.SQLException,
                                      java.io.IOException
Creator loads the PUB without checking any time stamps.

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

fetchSourceStack

public java.util.ArrayList<FilePosition> fetchSourceStack(int nodeNum)
                                                   throws RefactorException,
                                                          java.io.IOException
Fetch the source file (include) stack for a node in the CU. The first entry is the node's source (deepest in the stack), the last entry is the CU source file.

Throws:
RefactorException
java.io.IOException

getCuid

public int getCuid()

getNodeArray

public JPNode[] getNodeArray()
Gets the local copy of TreeUtils.nodeArray(getTopNode()).


getMacroRefs

public MacroRef[] getMacroRefs()
Gets the local copy of getMacroSourceArray().


getRelFileIndex

public java.lang.String[] getRelFileIndex()
Similar to a ParseUnit fileIndex, but has relative paths in the entries.


writeSourceStack

public void writeSourceStack(java.lang.StringBuilder out,
                             int nodenum)
                      throws RefactorException,
                             java.io.IOException
Write XML sourcestack for a node.

Throws:
RefactorException
java.io.IOException


Copyright © 2008 Joanju Software. All Rights Reserved.