| java.lang.Object org.eclipse.jdt.internal.debug.core.JavaDebugUtils
JavaDebugUtils | public class JavaDebugUtils (Code) | | A Utilities class.
since: 3.2 |
Method Summary | |
public static IJavaElement | findElement(String qualifiedTypeName, IJavaProject project) Returns the class file or compilation unit containing the given fully qualified name in the
specified project. | public static String | generateSourceName(String qualifiedTypeName) Generates and returns a source file path based on a qualified type name. | public static String | getSourceName(Object object) Returns the source name associated with the given object, or null
if none. | public static IType | resolveDeclaringType(IJavaStackFrame frame) Resolves and returns a type from the Java model that corresponds to the
declaring type of the given stack frame, or null if none. | public static Object | resolveSourceElement(Object object, ILaunch launch) Returns the source element corresponding to the given object or null
if none, in the context of the given launch. | public static IType | resolveType(IJavaValue value) Resolves and returns a type from the Java model that corresponds to the
type of the given value, or null if none. | public static IType | resolveType(IJavaType type) Resolves and returns the Java model type associated with the given
Java debug type, or null if none. |
findElement | public static IJavaElement findElement(String qualifiedTypeName, IJavaProject project) throws CoreException(Code) | | Returns the class file or compilation unit containing the given fully qualified name in the
specified project. All registered java like file extensions are considered.
Parameters: qualifiedTypeName - fully qualified type name Parameters: project - project to search in class file or compilation unit or null |
generateSourceName | public static String generateSourceName(String qualifiedTypeName)(Code) | | Generates and returns a source file path based on a qualified type name.
For example, when java.lang.String is provided,
the returned source name is java/lang/String.java .
Parameters: qualifiedTypeName - fully qualified type name that may contain inner typesdenoted with $ character a source file path corresponding to the type name |
getSourceName | public static String getSourceName(Object object) throws CoreException(Code) | | Returns the source name associated with the given object, or null
if none.
Parameters: object - an object with an IJavaStackFrame adapter, an IJavaValueor an IJavaType the source name associated with the given object, or null if none exception: CoreException - if unable to retrieve the source name |
resolveDeclaringType | public static IType resolveDeclaringType(IJavaStackFrame frame) throws CoreException(Code) | | Resolves and returns a type from the Java model that corresponds to the
declaring type of the given stack frame, or null if none.
Parameters: frame - frame to resolve declaring type for corresponding Java model type or null exception: CoreException - if an exception occurs during the resolution since: 3.2 |
resolveSourceElement | public static Object resolveSourceElement(Object object, ILaunch launch) throws CoreException(Code) | | Returns the source element corresponding to the given object or null
if none, in the context of the given launch.
Parameters: launch - provides source locator Parameters: object - object to resolve source element for corresponding source element or null throws: CoreException - |
resolveType | public static IType resolveType(IJavaValue value) throws CoreException(Code) | | Resolves and returns a type from the Java model that corresponds to the
type of the given value, or null if none.
Parameters: value - value to resolve type for corresponding Java model type or null exception: CoreException - if an exception occurs during the resolution |
resolveType | public static IType resolveType(IJavaType type) throws CoreException(Code) | | Resolves and returns the Java model type associated with the given
Java debug type, or null if none.
Parameters: type - Java debug model type Java model type or null throws: CoreException - |
|
|