org.jtool.jxplatform.query
Class Elipse2Jx

java.lang.Object
  extended byorg.jtool.jxplatform.query.Elipse2Jx

public class Elipse2Jx
extends java.lang.Object

Stores the repositories of projects within the workspace.

Author:
Katsuhisa Maruyama

Constructor Summary
Elipse2Jx()
           
 
Method Summary
static JxClass getJxClass(org.eclipse.jdt.core.IType type)
          Obtains a class corresponding to an IType.
static JxField getJxField(org.eclipse.jdt.core.IField field)
          Obtains a field correspondinf to an IField.
static JxFile getJxFile(org.eclipse.jdt.core.ICompilationUnit unit)
          Obtains a file corresponding to an ICompilationUnit.
static JxFile getJxFile(org.eclipse.core.resources.IFile file)
          Obtains a file corresponding to an IFile.
static JxMethod getJxMethod(org.eclipse.jdt.core.IMethod method)
          Obtains a method correspondinf to an IMethod.
static JxProject getJxProject(org.eclipse.core.resources.IProject project)
          Obtains a project corresponding to an IProject.
static JxClass getUpdatedJxClass(org.eclipse.jdt.core.IType type)
          Obtains a class corresponding to an IType.
static JxField getUpdatedJxField(org.eclipse.jdt.core.IField field)
          Obtains a field correspondinf to an IField.
static JxFile getUpdatedJxFile(org.eclipse.jdt.core.ICompilationUnit unit)
          Obtains a file corresponding to an ICompilationUnit.
static JxFile getUpdatedJxFile(org.eclipse.core.resources.IFile file)
          Obtains a file corresponding to an IFile.
static JxMethod getUpdatedJxMethod(org.eclipse.jdt.core.IMethod method)
          Obtains a method correspondinf to an IMethod.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Elipse2Jx

public Elipse2Jx()
Method Detail

getJxProject

public static JxProject getJxProject(org.eclipse.core.resources.IProject project)
Obtains a project corresponding to an IProject.

Parameters:
project - An Eclipse's project resource.
Returns:
The project object, null if there is no objects found.

getJxFile

public static JxFile getJxFile(org.eclipse.core.resources.IFile file)
Obtains a file corresponding to an IFile.

Parameters:
file - An Eclipse's file resource.
Returns:
The file wrapper, null if there is no file wrapper found or created.

getUpdatedJxFile

public static JxFile getUpdatedJxFile(org.eclipse.core.resources.IFile file)
Obtains a file corresponding to an IFile.

Parameters:
file - An Eclipse's file resource.
Returns:
The file wrapper, null if there is no file wrapper found.

getJxFile

public static JxFile getJxFile(org.eclipse.jdt.core.ICompilationUnit unit)
Obtains a file corresponding to an ICompilationUnit.

Parameters:
unit - An Eclipse JDT's compilation unit.
Returns:
The file wrapper, null if there is no file wrapper found.
Throws:
JxWrapperException - if the creation of this object fails.

getUpdatedJxFile

public static JxFile getUpdatedJxFile(org.eclipse.jdt.core.ICompilationUnit unit)
Obtains a file corresponding to an ICompilationUnit.

Parameters:
unit - An Eclipse JDT's compilation unit.
Returns:
The file wrapper, null if there is no file wrapper found.
Throws:
JxWrapperException - if the creation of this object fails.

getJxClass

public static JxClass getJxClass(org.eclipse.jdt.core.IType type)
Obtains a class corresponding to an IType.

Parameters:
type - An Eclipse JDT's type.
Returns:
The class wrapper, null if there is no class wrapper found.

getUpdatedJxClass

public static JxClass getUpdatedJxClass(org.eclipse.jdt.core.IType type)
Obtains a class corresponding to an IType.

Parameters:
type - An Eclipse JDT's type.
Returns:
The class wrapper, null if there is no class wrapper found.

getJxMethod

public static JxMethod getJxMethod(org.eclipse.jdt.core.IMethod method)
Obtains a method correspondinf to an IMethod.

Parameters:
method - An Eclipse JDT's method.
Returns:
The method wrapper, null if there is no method wrapper found.

getUpdatedJxMethod

public static JxMethod getUpdatedJxMethod(org.eclipse.jdt.core.IMethod method)
Obtains a method correspondinf to an IMethod.

Parameters:
method - An Eclipse JDT's method.
Returns:
The method wrapper, null if there is no method wrapper found.

getJxField

public static JxField getJxField(org.eclipse.jdt.core.IField field)
Obtains a field correspondinf to an IField.

Parameters:
field - An Eclipse JDT's field.
Returns:
The field wrapper, null if there is no field wrapper found.

getUpdatedJxField

public static JxField getUpdatedJxField(org.eclipse.jdt.core.IField field)
Obtains a field correspondinf to an IField.

Parameters:
field - An Eclipse JDT's field.
Returns:
The field wrapper, null if there is no field wrapper found.