当前位置: 首页>>代码示例>>Java>>正文


Java XLineBreakpoint.getConditionExpression方法代码示例

本文整理汇总了Java中com.intellij.xdebugger.breakpoints.XLineBreakpoint.getConditionExpression方法的典型用法代码示例。如果您正苦于以下问题:Java XLineBreakpoint.getConditionExpression方法的具体用法?Java XLineBreakpoint.getConditionExpression怎么用?Java XLineBreakpoint.getConditionExpression使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.xdebugger.breakpoints.XLineBreakpoint的用法示例。


在下文中一共展示了XLineBreakpoint.getConditionExpression方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: tryEvaluateBreakpointCondition

import com.intellij.xdebugger.breakpoints.XLineBreakpoint; //导入方法依赖的package包/类
public boolean tryEvaluateBreakpointCondition(@NotNull DotNetThreadProxy threadProxy, final XLineBreakpoint<?> breakpoint, final DotNetDebugContext debugContext) throws Exception
{
	final XExpression conditionExpression = breakpoint.getConditionExpression();
	if(conditionExpression == null)
	{
		return true;
	}

	DotNetStackFrameProxy frame = threadProxy.getFrame(0);
	if(frame == null)
	{
		return true;
	}

	XValue value = evaluateBreakpointExpression(frame, breakpoint, conditionExpression, debugContext);
	if(value instanceof DotNetAbstractVariableValueNode)
	{
		DotNetValueProxy valueOfVariableSafe = ((DotNetAbstractVariableValueNode) value).getValueOfVariable();
		if(valueOfVariableSafe instanceof DotNetBooleanValueProxy)
		{
			return ((DotNetBooleanValueProxy) valueOfVariableSafe).getValue();
		}
	}
	return true;
}
 
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:26,代码来源:DotNetBreakpointEngine.java

示例2: showDebugInformation

import com.intellij.xdebugger.breakpoints.XLineBreakpoint; //导入方法依赖的package包/类
private void showDebugInformation() {
  final XSourcePositionWrapper wrapper = new XSourcePositionWrapper(getCurrentPosition());
  final XLineBreakpoint<XBreakpointProperties> breakpoint = myBreakpoints.get(wrapper);

  final XDebugSession session = getSession();
  final XSuspendContext suspendContext = myStack.getSuspendContext();

  if (breakpoint != null) {
    final XDebuggerEvaluator evaluator = getActiveEvaluator();
    final XExpression conditionExpression = breakpoint.getConditionExpression();

    if (evaluator != null && conditionExpression != null) {
      evaluator.evaluate(
        conditionExpression,
        new EvaluationCallback(breakpoint, suspendContext),
        null
      );
    }
    else if (!session.breakpointReached(breakpoint, null, suspendContext)) { // 2nd arg is printed to console when breakpoint is reached
      resume();
    }
  }
  else {
    session.positionReached(suspendContext);

    myTempBreakpoints.remove(wrapper);
  }

  TheRGraphicsUtils.getGraphicsState(session.getProject()).refresh(true);
}
 
开发者ID:ktisha,项目名称:TheRPlugin,代码行数:31,代码来源:TheRDebugProcess.java

示例3: toMuleBreakpoint

import com.intellij.xdebugger.breakpoints.XLineBreakpoint; //导入方法依赖的package包/类
@NotNull
public static Breakpoint toMuleBreakpoint(Project project, XLineBreakpoint<XBreakpointProperties> lineBreakpoint, @Nullable Map<String, String> modulesToAppsMap) {
    final XSourcePosition sourcePosition = lineBreakpoint.getSourcePosition();
    final XExpression conditionExpression = lineBreakpoint.getConditionExpression();
    return toMuleBreakpoint(project, sourcePosition, conditionExpression, modulesToAppsMap);
}
 
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:7,代码来源:MuleConfigUtils.java

示例4: getExpression

import com.intellij.xdebugger.breakpoints.XLineBreakpoint; //导入方法依赖的package包/类
@Nullable
private String getExpression(@NotNull XLineBreakpoint<XBreakpointProperties> lineBreakpoint)
{
    final XExpression conditionExpression = lineBreakpoint.getConditionExpression();
    return conditionExpression != null ? conditionExpression.getExpression() : null;
}
 
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:7,代码来源:WeaveBreakpointHandler.java


注:本文中的com.intellij.xdebugger.breakpoints.XLineBreakpoint.getConditionExpression方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。