• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java XNamedValue类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.intellij.xdebugger.frame.XNamedValue的典型用法代码示例。如果您正苦于以下问题:Java XNamedValue类的具体用法?Java XNamedValue怎么用?Java XNamedValue使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



XNamedValue类属于com.intellij.xdebugger.frame包,在下文中一共展示了XNamedValue类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: findVar

import com.intellij.xdebugger.frame.XNamedValue; //导入依赖的package包/类
@NotNull
public static XValue findVar(Collection<XValue> vars, String name) {
  StringBuilder names = new StringBuilder();
  for (XValue each : vars) {
    if (each instanceof XNamedValue) {
      String eachName = ((XNamedValue)each).getName();
      if (eachName.equals(name)) return each;

      if (names.length() > 0) names.append(", ");
      names.append(eachName);
    }
  }
  throw new AssertionError("var '" + name + "' not found among " + names);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:XDebuggerTestUtil.java


示例2: computePresentation

import com.intellij.xdebugger.frame.XNamedValue; //导入依赖的package包/类
public static XTestValueNode computePresentation(XValue value, long timeout) throws InterruptedException {
  XTestValueNode node = new XTestValueNode();
  if (value instanceof XNamedValue) {
    node.myName = ((XNamedValue)value).getName();
  }
  value.computePresentation(node, XValuePlace.TREE);
  node.waitFor(timeout);
  return node;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:XDebuggerTestUtil.java


示例3: evaluate

import com.intellij.xdebugger.frame.XNamedValue; //导入依赖的package包/类
@Override
public void evaluate(@NotNull DotNetStackFrameProxy stackFrameMirror,
		@NotNull DotNetDebugContext dotNetDebugContext,
		@NotNull DotNetReferenceExpression dotNetReferenceExpression,
		@NotNull Set<Object> set,
		@NotNull Consumer<XNamedValue> consumer)
{
}
 
开发者ID:consulo,项目名称:consulo-unity3d,代码行数:9,代码来源:UnityScriptDebuggerProvider.java


示例4: createChildValue

import com.intellij.xdebugger.frame.XNamedValue; //导入依赖的package包/类
@NotNull
@Override
public XNamedValue createChildValue(int index, @NotNull DotNetDebugContext context, @NotNull DotNetStackFrameProxy frameProxy, @NotNull DotNetStringValueProxy value)
{
	char c = value.getValue().charAt(index);
	return new DotNetSimpleValueNode(context, "[" + index + "]", frameProxy, context.getVirtualMachine().createCharValue(c));
}
 
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:8,代码来源:StringDotNetLogicValueView.java


示例5: findVar

import com.intellij.xdebugger.frame.XNamedValue; //导入依赖的package包/类
@Nonnull
public static XValue findVar(Collection<XValue> vars, String name) {
  StringBuilder names = new StringBuilder();
  for (XValue each : vars) {
    if (each instanceof XNamedValue) {
      String eachName = ((XNamedValue)each).getName();
      if (eachName.equals(name)) return each;

      if (names.length() > 0) names.append(", ");
      names.append(eachName);
    }
  }
  throw new AssertionError("var '" + name + "' not found among " + names);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:15,代码来源:XDebuggerTestUtil.java


示例6: computePresentation

import com.intellij.xdebugger.frame.XNamedValue; //导入依赖的package包/类
public static XTestValueNode computePresentation(XValue value, long timeout) throws InterruptedException {
  XTestValueNode node = new XTestValueNode();
  if (value instanceof com.intellij.xdebugger.frame.XNamedValue) {
    node.myName = ((XNamedValue)value).getName();
  }
  value.computePresentation(node, XValuePlace.TREE);
  node.waitFor(timeout);
  return node;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:10,代码来源:XDebuggerTestUtil.java


示例7: addErrorValue

import com.intellij.xdebugger.frame.XNamedValue; //导入依赖的package包/类
public void addErrorValue(@NotNull String message, @NotNull XNamedValue value)
{
	List<XNamedValue> lst;
	if(!myErrorMessage2ValueMap.containsKey(message))
	{
		myErrorMessage2ValueMap.put(message, new ArrayList<>());
	}

	lst = myErrorMessage2ValueMap.get(message);
	lst.add(value);
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:12,代码来源:ErrorsValueGroup.java


示例8: evaluate

import com.intellij.xdebugger.frame.XNamedValue; //导入依赖的package包/类
@Override
public void evaluate(@NotNull DotNetStackFrameProxy frame,
		@NotNull DotNetDebugContext debuggerContext,
		@NotNull DotNetReferenceExpression referenceExpression,
		@NotNull Set<Object> visitedVariables,
		@NotNull Consumer<XNamedValue> consumer)
{
	try
	{
		List<Evaluator> evaluators = ApplicationManager.getApplication().runReadAction((Computable<List<Evaluator>>) () ->
		{
			PsiElement resolvedElement = referenceExpression.resolve();
			if(referenceExpression.getParent() instanceof CSharpMethodCallExpressionImpl || resolvedElement instanceof DotNetLikeMethodDeclaration)
			{
				return Collections.emptyList();
			}
			CSharpExpressionEvaluator expressionEvaluator = new CSharpExpressionEvaluator();
			referenceExpression.accept(expressionEvaluator);
			return expressionEvaluator.getEvaluators();
		});

		if(evaluators.isEmpty())
		{
			return;
		}

		CSharpEvaluateContext evaluateContext = new CSharpEvaluateContext(debuggerContext, frame, referenceExpression);
		evaluateContext.evaluate(evaluators);
		Pair<DotNetValueProxy, Object> objectPair = evaluateContext.pop();
		if(objectPair != null && objectPair.getSecond() instanceof DotNetFieldOrPropertyProxy)
		{
			DotNetFieldOrPropertyProxy fieldOrPropertyMirror = (DotNetFieldOrPropertyProxy) objectPair.getSecond();
			if(visitedVariables.contains(fieldOrPropertyMirror))
			{
				return;
			}

			visitedVariables.add(fieldOrPropertyMirror);

			DotNetTypeProxy parent = fieldOrPropertyMirror.getParentType();

			DotNetValueProxy thisObjectValue = ThisObjectEvaluator.calcThisObject(frame, frame.getThisObject());
			DotNetTypeProxy type = thisObjectValue.getType();
			if(thisObjectValue instanceof DotNetObjectValueProxy && parent.equals(type))
			{
				consumer.consume(new DotNetFieldOrPropertyValueNode(debuggerContext, fieldOrPropertyMirror, frame, (DotNetObjectValueProxy) thisObjectValue));
			}
			else if(thisObjectValue instanceof DotNetStructValueProxy && parent.equals(type))
			{
				DotNetStructValueProxy structValueMirror = (DotNetStructValueProxy) thisObjectValue;

				DotNetStructValueInfo valueInfo = new DotNetStructValueInfo(structValueMirror, null, fieldOrPropertyMirror, objectPair.getFirst());

				consumer.consume(new DotNetFieldOrPropertyValueNode(debuggerContext, fieldOrPropertyMirror, frame, null, valueInfo));
			}
			else
			{
				consumer.consume(new CSharpWatcherNode(debuggerContext, ApplicationManager.getApplication().runReadAction((Computable<String>) referenceExpression::getText), frame, objectPair
						.getFirst()));
			}
		}
	}
	catch(Exception e)
	{
		// ignored
	}
}
 
开发者ID:consulo,项目名称:consulo-csharp,代码行数:68,代码来源:CSharpDebuggerProvider.java


示例9: createValueNode

import com.intellij.xdebugger.frame.XNamedValue; //导入依赖的package包/类
static XNamedValue createValueNode(String name, boolean root, Value value) {
    return !value.getType().startsWith("@")
            ? new TeaVMValue(name, root, value)
            : new TeaVMOriginalValue(name, root, value.getOriginalValue());
}
 
开发者ID:konsoletyper,项目名称:teavm,代码行数:6,代码来源:TeaVMStackFrame.java


示例10: createChildValue

import com.intellij.xdebugger.frame.XNamedValue; //导入依赖的package包/类
@NotNull
@Override
public XNamedValue createChildValue(int index, @NotNull DotNetDebugContext context, @NotNull DotNetStackFrameProxy frameProxy, @NotNull DotNetArrayValueProxy value)
{
	return new DotNetArrayValueNode(context, "[" + index + "]", frameProxy, value, index);
}
 
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:7,代码来源:ArrayDotNetLogicValueView.java


示例11: createChildValue

import com.intellij.xdebugger.frame.XNamedValue; //导入依赖的package包/类
@NotNull
public abstract XNamedValue createChildValue(int index, @NotNull DotNetDebugContext context, @NotNull DotNetStackFrameProxy frameProxy, @NotNull T value);
 
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:3,代码来源:LimitableDotNetLogicValueView.java


示例12: evaluate

import com.intellij.xdebugger.frame.XNamedValue; //导入依赖的package包/类
public abstract void evaluate(@NotNull DotNetStackFrameProxy frame,
@NotNull DotNetDebugContext debuggerContext,
@NotNull DotNetReferenceExpression element,
@NotNull Set<Object> visitedVariables,
@NotNull Consumer<XNamedValue> callback);
 
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:6,代码来源:DotNetDebuggerProvider.java


示例13: StackFrameItem

import com.intellij.xdebugger.frame.XNamedValue; //导入依赖的package包/类
public StackFrameItem(Location location, List<XNamedValue> variables)
{
	myLocation = location;
	myVariables = variables;
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:6,代码来源:StackFrameItem.java


示例14: createMessageNode

import com.intellij.xdebugger.frame.XNamedValue; //导入依赖的package包/类
public static XNamedValue createMessageNode(String text, Icon icon)
{
	return new DummyMessageValueNode(text, icon);
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:5,代码来源:JavaStackFrame.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ClassType类代码示例发布时间:2022-05-22
下一篇:
Java IScope类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap