org.prorefactor.refactor
Class ScanManager

java.lang.Object
  extended by org.prorefactor.refactor.ScanManager

public class ScanManager
extends java.lang.Object

Eases the use of one or more scanners in combination with the parser. Is not intended for use with "standalone scans" - scans that are not being dealt with in combination with the AST.


Constructor Summary
ScanManager()
           
 
Method Summary
 int getScanNumFromIndex(int index)
          Given a file index, find or create a scan for the source file.
 int getScanNumFromNode(int node)
          Given a node, find or create a scanner for the node's original source.
 Scan getScanObjectFromIndex(int index)
          Given a file index, find or create a scan for the source file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScanManager

public ScanManager()
Method Detail

getScanNumFromIndex

public int getScanNumFromIndex(int index)
                        throws java.io.IOException
Given a file index, find or create a scan for the source file.

Throws:
java.io.IOException

getScanNumFromNode

public int getScanNumFromNode(int node)
                       throws java.io.IOException
Given a node, find or create a scanner for the node's original source. The input node does not have to be "natural" - this function will find the first natural child in order to find the filename.

Parameters:
node -
Returns:
Less than zero on error, otherwise the scan number.
Throws:
java.io.IOException

getScanObjectFromIndex

public Scan getScanObjectFromIndex(int index)
                            throws java.io.IOException
Given a file index, find or create a scan for the source file.

Throws:
java.io.IOException


Copyright © 2008 Joanju Software. All Rights Reserved.