public class DebuggerUtilsImpl extends DebuggerUtilsEx
DebuggerUtils.ArrayClass
Modifier and Type | Field and Description |
---|---|
static Key<PsiType> |
PSI_TYPE_KEY |
LAMBDA_ORDINAL_COMPARATOR
MAX_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, writeFilters
checkSyntax, cleanupAfterProcessFinish, convertToPresentationString, ensureNotInsideObjectConstructor, findClass, findMethod, getArrayClass, getInstance, getSuperType, getType, getValueAsString, hasSideEffects, hasSideEffectsOrReferencesMissingVars, instanceOf, instanceOf, isAndroidVM, isBreakpointAware, isInsideSimpleGetter, isInteger, isNumeric, isPrimitiveType, isSynthetic, processCollectibleValue, translateStringValue
public PsiExpression substituteThis(PsiExpression expressionWithThis, PsiExpression howToEvaluateThis, com.sun.jdi.Value howToEvaluateThisValue, StackFrameContext context) throws EvaluateException
substituteThis
in class DebuggerUtils
EvaluateException
public DebuggerContextImpl getDebuggerContext(DataContext context)
getDebuggerContext
in class DebuggerUtils
public Element writeTextWithImports(TextWithImports text)
writeTextWithImports
in class DebuggerUtils
public TextWithImports readTextWithImports(Element element)
readTextWithImports
in class DebuggerUtils
public void writeTextWithImports(Element root, java.lang.String name, TextWithImports value)
writeTextWithImports
in class DebuggerUtils
public TextWithImports readTextWithImports(Element root, java.lang.String name)
readTextWithImports
in class DebuggerUtils
public TextWithImports createExpressionWithImports(java.lang.String expression)
createExpressionWithImports
in class DebuggerUtils
public PsiElement getContextElement(StackFrameContext context)
getContextElement
in class DebuggerUtils
public static Pair<PsiElement,PsiType> getPsiClassAndType(java.lang.String className, Project project)
public PsiClass chooseClassDialog(java.lang.String title, Project project)
chooseClassDialog
in class DebuggerUtils
public java.lang.String findAvailableDebugAddress(boolean useSockets) throws ExecutionException
findAvailableDebugAddress
in class DebuggerUtils
ExecutionException
public 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.Exception
public 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.Exception
public 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)