com.intellij.debugger.engine
Class DebuggerUtils

java.lang.Object
  extended by com.intellij.debugger.engine.DebuggerUtils
All Implemented Interfaces:
ApplicationComponent, BaseComponent

public abstract class DebuggerUtils
extends java.lang.Object
implements ApplicationComponent


Nested Class Summary
protected static class DebuggerUtils.ArrayClass
           
 
Constructor Summary
DebuggerUtils()
           
 
Method Summary
static void checkSyntax(PsiCodeFragment codeFragment)
           
abstract  PsiClass chooseClassDialog(java.lang.String title, Project project)
           
abstract  TextWithImports createExpressionWithImports(java.lang.String expression)
           
abstract  java.lang.String findAvailableDebugAddress(boolean useSockets)
           
static PsiClass findClass(java.lang.String className, Project project)
           
static com.sun.jdi.Method findMethod(com.sun.jdi.ReferenceType refType, java.lang.String methodName, java.lang.String methodSignature)
           
protected static DebuggerUtils.ArrayClass getArrayClass(java.lang.String className)
           
abstract  PsiElement getContextElement(StackFrameContext context)
           
abstract  DebuggerContext getDebuggerContext(DataContext context)
           
static DebuggerUtils getInstance()
           
static com.sun.jdi.Type getSuperType(com.sun.jdi.Type subType, java.lang.String superType)
           
static PsiType getType(java.lang.String className, Project project)
           
static java.lang.String getValueAsString(EvaluationContext evaluationContext, com.sun.jdi.Value value)
           
static boolean instanceOf(java.lang.String subType, java.lang.String superType, Project project)
           
static boolean instanceOf(com.sun.jdi.Type subType, java.lang.String superType)
           
static boolean isInteger(com.sun.jdi.Value value)
           
static boolean isNumeric(com.sun.jdi.Value value)
           
abstract  TextWithImports readTextWithImports(org.jdom.Element element)
           
abstract  TextWithImports readTextWithImports(org.jdom.Element root, java.lang.String name)
           
abstract  PsiExpression substituteThis(PsiExpression expressionWithThis, PsiExpression howToEvaluateThis, com.sun.jdi.Value howToEvaluateThisValue, StackFrameContext context)
           
static java.lang.String translateStringValue(java.lang.String str)
           
abstract  void writeTextWithImports(org.jdom.Element root, java.lang.String name, TextWithImports value)
           
abstract  org.jdom.Element writeTextWithImports(TextWithImports text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.intellij.openapi.components.BaseComponent
disposeComponent, getComponentName, initComponent
 

Constructor Detail

DebuggerUtils

public DebuggerUtils()
Method Detail

getValueAsString

@NonNls
public static java.lang.String getValueAsString(EvaluationContext evaluationContext,
                                                       com.sun.jdi.Value value)
                                         throws EvaluateException
Throws:
EvaluateException

findMethod

public static com.sun.jdi.Method findMethod(com.sun.jdi.ReferenceType refType,
                                            @NonNls
                                            java.lang.String methodName,
                                            @NonNls
                                            java.lang.String methodSignature)

isNumeric

public static boolean isNumeric(com.sun.jdi.Value value)

isInteger

public static boolean isInteger(com.sun.jdi.Value value)

translateStringValue

public static java.lang.String translateStringValue(java.lang.String str)

getArrayClass

protected static DebuggerUtils.ArrayClass getArrayClass(java.lang.String className)

instanceOf

public static boolean instanceOf(java.lang.String subType,
                                 java.lang.String superType,
                                 Project project)

getSuperType

public static com.sun.jdi.Type getSuperType(com.sun.jdi.Type subType,
                                            java.lang.String superType)

instanceOf

public static boolean instanceOf(com.sun.jdi.Type subType,
                                 java.lang.String superType)

findClass

public static PsiClass findClass(java.lang.String className,
                                 Project project)

getType

public static PsiType getType(java.lang.String className,
                              Project project)

checkSyntax

public static void checkSyntax(PsiCodeFragment codeFragment)
                        throws EvaluateException
Throws:
EvaluateException

findAvailableDebugAddress

public abstract java.lang.String findAvailableDebugAddress(boolean useSockets)
                                                    throws ExecutionException
Throws:
ExecutionException

getInstance

public static DebuggerUtils getInstance()

substituteThis

public abstract PsiExpression substituteThis(PsiExpression expressionWithThis,
                                             PsiExpression howToEvaluateThis,
                                             com.sun.jdi.Value howToEvaluateThisValue,
                                             StackFrameContext context)
                                      throws EvaluateException
Throws:
EvaluateException

getDebuggerContext

public abstract DebuggerContext getDebuggerContext(DataContext context)

writeTextWithImports

public abstract org.jdom.Element writeTextWithImports(TextWithImports text)

readTextWithImports

public abstract TextWithImports readTextWithImports(org.jdom.Element element)

writeTextWithImports

public abstract void writeTextWithImports(org.jdom.Element root,
                                          java.lang.String name,
                                          TextWithImports value)

readTextWithImports

public abstract TextWithImports readTextWithImports(org.jdom.Element root,
                                                    java.lang.String name)

createExpressionWithImports

public abstract TextWithImports createExpressionWithImports(java.lang.String expression)

getContextElement

public abstract PsiElement getContextElement(StackFrameContext context)

chooseClassDialog

public abstract PsiClass chooseClassDialog(java.lang.String title,
                                           Project project)