public class JavaDebuggerEvaluator extends XDebuggerEvaluator implements XDebuggerPsiEvaluator
XDebuggerEvaluator.XEvaluationCallback
Constructor and Description |
---|
JavaDebuggerEvaluator(DebugProcessImpl debugProcess,
JavaStackFrame stackFrame) |
Modifier and Type | Method and Description |
---|---|
void |
evaluate(PsiElement element,
XDebuggerEvaluator.XEvaluationCallback callback) |
void |
evaluate(java.lang.String expression,
XDebuggerEvaluator.XEvaluationCallback callback,
XSourcePosition expressionPosition)
Start evaluating expression.
|
void |
evaluate(XExpression expression,
XDebuggerEvaluator.XEvaluationCallback callback,
XSourcePosition expressionPosition)
Start evaluating expression.
|
EvaluationMode |
getEvaluationMode(java.lang.String text,
int startOffset,
int endOffset,
PsiFile psiFile)
Returns mode which should be used to evaluate the text
|
ExpressionInfo |
getExpressionInfoAtOffset(Project project,
Document document,
int offset,
boolean sideEffectsAllowed) |
formatTextForEvaluation, getExpressionInfoAtOffsetAsync, getExpressionRangeAtOffset, getWhenDataIsReady, isCodeFragmentEvaluationSupported
public JavaDebuggerEvaluator(DebugProcessImpl debugProcess, JavaStackFrame stackFrame)
public void evaluate(java.lang.String expression, XDebuggerEvaluator.XEvaluationCallback callback, XSourcePosition expressionPosition)
XDebuggerEvaluator
evaluate
in class XDebuggerEvaluator
expression
- expression to evaluatecallback
- used to notify that the expression has been evaluated or an error occurspublic void evaluate(XExpression expression, XDebuggerEvaluator.XEvaluationCallback callback, XSourcePosition expressionPosition)
XDebuggerEvaluator
evaluate
in class XDebuggerEvaluator
expression
- expression to evaluatecallback
- used to notify that the expression has been evaluated or an error occursexpressionPosition
- position where this expression should be evaluatedpublic void evaluate(PsiElement element, XDebuggerEvaluator.XEvaluationCallback callback)
evaluate
in interface XDebuggerPsiEvaluator
public ExpressionInfo getExpressionInfoAtOffset(Project project, Document document, int offset, boolean sideEffectsAllowed)
getExpressionInfoAtOffset
in class XDebuggerEvaluator
project
- projectdocument
- documentoffset
- offsetsideEffectsAllowed
- if this parameter is false, the expression should not have any side effects when evaluated
(such expressions are evaluated in quick popups)ExpressionInfo
of expression which can be evaluatedpublic EvaluationMode getEvaluationMode(java.lang.String text, int startOffset, int endOffset, PsiFile psiFile)
XDebuggerEvaluator
getEvaluationMode
in class XDebuggerEvaluator