public class DebuggerUtilsImpl extends DebuggerUtilsEx
DebuggerUtils.ArrayClass| Modifier and Type | Field and Description |
|---|---|
static Key<PsiType> |
PSI_TYPE_KEY |
LAMBDA_ORDINAL_COMPARATORMAX_DISPLAY_LABEL_LENGTH, ourPrimitiveTypeNames| Constructor and Description |
|---|
DebuggerUtilsImpl() |
| Modifier and Type | Method and Description |
|---|---|
PsiClass |
chooseClassDialog(java.lang.String title,
Project project) |
TextWithImports |
createExpressionWithImports(java.lang.String expression) |
java.lang.String |
findAvailableDebugAddress(boolean useSockets) |
static java.lang.String |
getConnectionDisplayName(RemoteConnection connection) |
PsiElement |
getContextElement(StackFrameContext context) |
DebuggerContextImpl |
getDebuggerContext(DataContext context) |
static Pair<PsiElement,PsiType> |
getPsiClassAndType(java.lang.String className,
Project project) |
static boolean |
instanceOf(com.sun.jdi.ReferenceType type,
com.sun.jdi.ReferenceType superType) |
static boolean |
isRemote(DebugProcess debugProcess) |
static byte [] |
readBytesArray(com.sun.jdi.Value bytesArray) |
TextWithImports |
readTextWithImports(Element element) |
TextWithImports |
readTextWithImports(Element root,
java.lang.String name) |
PsiExpression |
substituteThis(PsiExpression expressionWithThis,
PsiExpression howToEvaluateThis,
com.sun.jdi.Value howToEvaluateThisValue,
StackFrameContext context) |
static java.util.stream.Stream<? extends com.sun.jdi.ReferenceType> |
supertypes(com.sun.jdi.ReferenceType type) |
static <T,E extends java.lang.Exception> |
suppressExceptions(ThrowableComputable<? extends T,? extends E> supplier,
T defaultValue) |
static <T,E extends java.lang.Exception> |
suppressExceptions(ThrowableComputable<? extends T,? extends E> supplier,
T defaultValue,
boolean ignorePCE,
java.lang.Class<E> rethrow) |
void |
writeTextWithImports(Element root,
java.lang.String name,
TextWithImports value) |
Element |
writeTextWithImports(TextWithImports text) |
addThreadDump, allLineLocations, allLineLocations, bytecodeToSourceLine, collectLambdas, create, createValue, createValue, createValue, createValue, declaredMethodsByName, disableCollection, elementsEqual, enableCollection, evaluateBoolean, externalizableEqual, filterEquals, findAppropriateCodeFragmentFactory, findElementAt, findPsiMethod, getAlternativeSourceUrl, getArgumentValues, getBody, getCodeFragmentFactories, getCodeFragmentFactory, getContainingMethod, getContainingMethod, getEffectiveAssertionStatus, getEnabledNumber, getEventDescriptors, getFirstElementOnTheLine, getLambdaBaseClassName, getLambdaOrdinal, getLineNumber, getLocationMethodQName, getMethod, getParameters, getPsiFile, getSourceName, getSuperClass, getThreadStatusText, intersects, intersectWithLine, inTheMethod, isAssignableFrom, isFiltered, isFiltered, isInLibraryContent, isLambda, isLambdaClassName, isLambdaName, isProxyClass, isProxyClassName, isVoid, keep, locationsOfLine, methodKey, methodMatches, methodName, methodName, methodNameWithArguments, mirrorOfArray, mirrorOfString, prepareValueText, readFilters, setAlternativeSourceUrl, signatureToName, toSourcePosition, toXSourcePosition, truncateString, valuesEqual, writeFilterscheckSyntax, cleanupAfterProcessFinish, convertToPresentationString, ensureNotInsideObjectConstructor, findClass, findMethod, getArrayClass, getInstance, getSuperType, getType, getValueAsString, hasSideEffects, hasSideEffectsOrReferencesMissingVars, instanceOf, instanceOf, isAndroidVM, isBreakpointAware, isInsideSimpleGetter, isInteger, isNumeric, isPrimitiveType, isSynthetic, processCollectibleValue, translateStringValuepublic PsiExpression substituteThis(PsiExpression expressionWithThis, PsiExpression howToEvaluateThis, com.sun.jdi.Value howToEvaluateThisValue, StackFrameContext context) throws EvaluateException
substituteThis in class DebuggerUtilsEvaluateExceptionpublic DebuggerContextImpl getDebuggerContext(DataContext context)
getDebuggerContext in class DebuggerUtilspublic Element writeTextWithImports(TextWithImports text)
writeTextWithImports in class DebuggerUtilspublic TextWithImports readTextWithImports(Element element)
readTextWithImports in class DebuggerUtilspublic void writeTextWithImports(Element root,
java.lang.String name,
TextWithImports value)
writeTextWithImports in class DebuggerUtilspublic TextWithImports readTextWithImports(Element root, java.lang.String name)
readTextWithImports in class DebuggerUtilspublic TextWithImports createExpressionWithImports(java.lang.String expression)
createExpressionWithImports in class DebuggerUtilspublic PsiElement getContextElement(StackFrameContext context)
getContextElement in class DebuggerUtilspublic static Pair<PsiElement,PsiType> getPsiClassAndType(java.lang.String className, Project project)
public PsiClass chooseClassDialog(java.lang.String title, Project project)
chooseClassDialog in class DebuggerUtilspublic java.lang.String findAvailableDebugAddress(boolean useSockets)
throws ExecutionException
findAvailableDebugAddress in class DebuggerUtilsExecutionExceptionpublic static boolean isRemote(DebugProcess debugProcess)
public static <T,E extends java.lang.Exception> T suppressExceptions(ThrowableComputable<? extends T,? extends E> supplier, T defaultValue) throws E extends java.lang.Exception
E extends java.lang.Exceptionpublic static <T,E extends java.lang.Exception> T suppressExceptions(ThrowableComputable<? extends T,? extends E> supplier, T defaultValue, boolean ignorePCE, java.lang.Class<E> rethrow) throws E extends java.lang.Exception
E extends java.lang.Exceptionpublic static java.lang.String getConnectionDisplayName(RemoteConnection connection)
public static boolean instanceOf(com.sun.jdi.ReferenceType type,
com.sun.jdi.ReferenceType superType)
public static java.util.stream.Stream<? extends com.sun.jdi.ReferenceType> supertypes(com.sun.jdi.ReferenceType type)
public static byte [] readBytesArray(com.sun.jdi.Value bytesArray)