|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jtool.jxplatform.query.QueryProject
A utility class which provides quaries about projects.
Do not pass null to any parameter in methods in this class.
| Constructor Summary | |
QueryProject()
|
|
| Method Summary | |
protected static java.util.ArrayList |
getAccessesUsingField(JxElement jelem,
JxField jfield)
Obtains all field access wrappers in a given DOM subtree which access a given field. |
static JxClassList |
getAllJxClasses(JxProject project)
Obtains all classes which exist in a given project. |
static JxFileList |
getAllJxFiles(JxProject project)
Obtains all files which exist in a given project. |
static java.util.ArrayList |
getAllPackageNames(JxProject project)
Obtains all packages which exist in a given project. |
static JxClassList |
getAnonymousJavaClasses(JxProject project,
JxClass jclass)
Obtains all wrappers of anonymous classes in a given project that are equal to a given class. |
protected static java.util.ArrayList |
getCallsUsingMethod(JxElement jelem,
JxMethod jmethod)
Obtains all method call wrappers in a given DOM subtree which call a given method. |
static JxClassList |
getClassesCallingMethod(JxProject project,
JxMethod jmethod)
Obtains all classes in a given project that call a given method. |
static JxClassList |
getClassesInPackage(JxProject project,
java.lang.String pname)
Obtains all classes which exist in a given package of a given project. |
static JxClass |
getClassInProject(JxProject project,
java.lang.String fqn)
Returns a class with a given name in a given project. |
static JxFileList |
getFilesCallingMethod(JxProject project,
JxMethod jmethod)
Obtains all files in a given project that call a given method. |
static JxFileList |
getFilesCallingTheMethodExceptSelf(JxProject project,
JxMethod jmethod)
Obtains all files in a given project that call a given method except the method itself. |
static JxFileList |
getFilesInPackage(JxProject project,
java.lang.String pname)
Obtains all files which exist in a given package of a given project. |
static JxFileList |
getFilesUsingClass(JxProject project,
JxClass jclass)
Obtains all files in a given project that use a given class. |
static JxFileList |
getFilesUsingClassExceptSelf(JxProject project,
JxClass jclass)
Obtains all files in a given project that use a given class except the class itself. |
static JxFileList |
getFilesUsingField(JxProject project,
JxField jfield)
Obtains all files in a given project that access a given field. |
static JxFileList |
getFilesUsingFieldExceptSelf(JxProject project,
JxField jfield)
Obtains all files in a given project that access a given field except the fiels itself. |
static JxFile |
getFileWithName(JxProject project,
java.lang.String name)
Returns a file with a given name in a given project. |
static JxClassList |
getJxClassesUsingTheField(JxProject project,
JxField jfield)
Obtains all classes in a given project that access a given field. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public QueryProject()
| Method Detail |
public static java.util.ArrayList getAllPackageNames(JxProject project)
throws JxUnknownResultException
project - A project.
JxUnknownResultException - if the result is unknown.
public static JxFileList getAllJxFiles(JxProject project)
throws JxUnknownResultException
project - A project.
JxUnknownResultException - if the result is unknown.
public static JxFileList getFilesInPackage(JxProject project,
java.lang.String pname)
throws JxUnknownResultException
project - A project.pname - A package name.
JxUnknownResultException - if the result is unknown.
public static JxFile getFileWithName(JxProject project,
java.lang.String name)
throws JxUnknownResultException
project - A project.name - The path name of a file.
null if there is no file detected.
JxUnknownResultException - if the result is unknown.
public static JxClassList getAllJxClasses(JxProject project)
throws JxUnknownResultException
project - A project.
JxUnknownResultException - if the result is unknown.
public static JxClassList getClassesInPackage(JxProject project,
java.lang.String pname)
throws JxUnknownResultException
project - A project.pname - A package name.
JxUnknownResultException - if the result is unknown.
public static JxFileList getFilesUsingClass(JxProject project,
JxClass jclass)
throws JxUnknownResultException
project - A project.jclass - A class wrapper.
JxUnknownResultException - if the result is unknown.
public static JxFileList getFilesUsingClassExceptSelf(JxProject project,
JxClass jclass)
throws JxUnknownResultException
project - A project.jclass - A class wrapper.
JxUnknownResultException - if the result is unknown.
public static JxFileList getFilesCallingMethod(JxProject project,
JxMethod jmethod)
throws JxUnknownResultException
project - A project.jmethod - A method wrapper.
JxUnknownResultException - if the result is unknown.
public static JxFileList getFilesCallingTheMethodExceptSelf(JxProject project,
JxMethod jmethod)
throws JxUnknownResultException
project - A project.jmethod - A method wrapper.
JxUnknownResultException - if the result is unknown.
public static JxFileList getFilesUsingField(JxProject project,
JxField jfield)
throws JxUnknownResultException
project - A project.jfield - A field wrapper.
JxUnknownResultException - if the result is unknown.
public static JxFileList getFilesUsingFieldExceptSelf(JxProject project,
JxField jfield)
throws JxUnknownResultException
project - A project.jfield - A field wrapper.
JxUnknownResultException - if the result is unknown.
protected static java.util.ArrayList getCallsUsingMethod(JxElement jelem,
JxMethod jmethod)
throws JxUnknownResultException
jelem - The root element of a DOM subtree.jmethod - A method wrapper.
JxMethodCall objects.
JxUnknownResultException - if the result is unknown.
protected static java.util.ArrayList getAccessesUsingField(JxElement jelem,
JxField jfield)
throws JxUnknownResultException
jelem - The root element of a DOM subtree.jfield - A field wrapper.
JxFieldAccess objects.
JxUnknownResultException - if the result is unknown.
public static JxClassList getClassesCallingMethod(JxProject project,
JxMethod jmethod)
throws JxUnknownResultException
project - A project.jmethod - A method wrapper.
JxUnknownResultException - if the result is unknown.
public static JxClassList getJxClassesUsingTheField(JxProject project,
JxField jfield)
throws JxUnknownResultException
project - A project.jfield - A field wrapper.
JxUnknownResultException - if the result is unknown.
public static JxClassList getAnonymousJavaClasses(JxProject project,
JxClass jclass)
throws JxUnknownResultException
project - A project.jclass - A class wrapper.
JxUnknownResultException - if the result is unknown.
public static JxClass getClassInProject(JxProject project,
java.lang.String fqn)
throws JxUnknownResultException
project - A project.fqn - A fully qualified name of a class.
null if no class was found.
JxUnknownResultException - if the result is unknown.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||