本文整理汇总了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);
}
示例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;
}
示例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)
{
}
示例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));
}
示例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);
}
示例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;
}
示例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);
}
示例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
}
}
示例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());
}
示例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);
}
示例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);
示例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);
示例13: StackFrameItem
import com.intellij.xdebugger.frame.XNamedValue; //导入依赖的package包/类
public StackFrameItem(Location location, List<XNamedValue> variables)
{
myLocation = location;
myVariables = variables;
}
示例14: createMessageNode
import com.intellij.xdebugger.frame.XNamedValue; //导入依赖的package包/类
public static XNamedValue createMessageNode(String text, Icon icon)
{
return new DummyMessageValueNode(text, icon);
}