org.jtool.jxplatform.j2x.resolver
Class TypeInformation

java.lang.Object
  extended byorg.jtool.jxplatform.j2x.resolver.TypeInformation

public class TypeInformation
extends java.lang.Object

Stores type information about source code within the project.

Author:
Katsuhisa Maruyama

Constructor Summary
TypeInformation(org.eclipse.jdt.core.IJavaProject project)
          Creates an object storing type information about the specified project.
 
Method Summary
 void delete()
          Deletes stored information.
 org.eclipse.jdt.core.ICompilationUnit[] getCompilationUnits()
          Obtains all compilation units stored within the project.
 org.jtool.jxplatform.j2x.resolver.TypeLocation resolveFileNameByType(java.lang.String pname, java.lang.String tname)
          Resolves the name of the a file that defines a type in a package.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeInformation

public TypeInformation(org.eclipse.jdt.core.IJavaProject project)
Creates an object storing type information about the specified project.

Parameters:
project - The repository of a project.
Method Detail

delete

public void delete()
Deletes stored information.


resolveFileNameByType

public org.jtool.jxplatform.j2x.resolver.TypeLocation resolveFileNameByType(java.lang.String pname,
                                                                            java.lang.String tname)
Resolves the name of the a file that defines a type in a package.

Parameters:
pname - A package name.
tname - A type name.
Returns:
Information about the location of the resolved type.

getCompilationUnits

public org.eclipse.jdt.core.ICompilationUnit[] getCompilationUnits()
Obtains all compilation units stored within the project.

Returns:
The array of the compilation units.