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


Java DebuggerUtils.isSynthetic方法代码示例

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


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

示例1: shouldDisplay

import com.intellij.debugger.engine.DebuggerUtils; //导入方法依赖的package包/类
protected boolean shouldDisplay(EvaluationContext context, @NotNull ObjectReference objInstance, @NotNull Field field) {
  final boolean isSynthetic = DebuggerUtils.isSynthetic(field);
  if (!SHOW_SYNTHETICS && isSynthetic) {
    return false;
  }
  if (SHOW_VAL_FIELDS_AS_LOCAL_VARIABLES && isSynthetic) {
    try {
      final StackFrameProxy frameProxy = context.getFrameProxy();
      if (frameProxy != null) {
        final Location location = frameProxy.location();
        if (location != null && objInstance.equals(context.getThisObject()) && Comparing.equal(objInstance.referenceType(), location.declaringType()) && StringUtil.startsWith(field.name(), FieldDescriptorImpl.OUTER_LOCAL_VAR_FIELD_PREFIX)) {
          return false;
        }
      }
    }
    catch (EvaluateException ignored) {
    }
  }
  if(!SHOW_STATIC && field.isStatic()) {
    return false;
  }

  if(!SHOW_STATIC_FINAL && field.isStatic() && field.isFinal()) {
    return false;
  }

  return true;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:29,代码来源:ClassRenderer.java

示例2: isOuterLocalVariableValue

import com.intellij.debugger.engine.DebuggerUtils; //导入方法依赖的package包/类
public boolean isOuterLocalVariableValue() {
  try {
    return DebuggerUtils.isSynthetic(myField) && myField.name().startsWith(OUTER_LOCAL_VAR_FIELD_PREFIX);
  }
  catch (UnsupportedOperationException ignored) {
    return false;
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:FieldDescriptorImpl.java

示例3: shouldDisplay

import com.intellij.debugger.engine.DebuggerUtils; //导入方法依赖的package包/类
private boolean shouldDisplay(EvaluationContext context, @NotNull ObjectReference objInstance, @NotNull Field field) {
  final boolean isSynthetic = DebuggerUtils.isSynthetic(field);
  if (!SHOW_SYNTHETICS && isSynthetic) {
    return false;
  }
  if (SHOW_VAL_FIELDS_AS_LOCAL_VARIABLES && isSynthetic) {
    try {
      final StackFrameProxy frameProxy = context.getFrameProxy();
      if (frameProxy != null) {
        final Location location = frameProxy.location();
        if (location != null && objInstance.equals(context.getThisObject()) && Comparing.equal(objInstance.referenceType(), location.declaringType()) && StringUtil.startsWith(field.name(), FieldDescriptorImpl.OUTER_LOCAL_VAR_FIELD_PREFIX)) {
          return false;
        }
      }
    }
    catch (EvaluateException ignored) {
    }
  }
  if(!SHOW_STATIC && field.isStatic()) {
    return false;
  }

  if(!SHOW_STATIC_FINAL && field.isStatic() && field.isFinal()) {
    return false;
  }

  return true;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:29,代码来源:ClassRenderer.java

示例4: isOuterLocalVariableValue

import com.intellij.debugger.engine.DebuggerUtils; //导入方法依赖的package包/类
public boolean isOuterLocalVariableValue() {
  try {
    return DebuggerUtils.isSynthetic(myField) && myField.name().startsWith(OUTER_LOCAL_VAR_FIELD_PREFIX);
  }
  catch (UnsupportedOperationException e) {
    return false;
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:9,代码来源:FieldDescriptorImpl.java

示例5: CapturedStackFrame

import com.intellij.debugger.engine.DebuggerUtils; //导入方法依赖的package包/类
public CapturedStackFrame(DebugProcessImpl debugProcess, StackFrameItem item)
{
	DebuggerManagerThreadImpl.assertIsManagerThread();
	mySourcePosition = DebuggerUtilsEx.toXSourcePosition(debugProcess.getPositionManager().getSourcePosition(item.myLocation));
	myIsSynthetic = DebuggerUtils.isSynthetic(item.myLocation.method());
	myIsInLibraryContent = DebuggerUtilsEx.isInLibraryContent(mySourcePosition != null ? mySourcePosition.getFile() : null, debugProcess.getProject());
	myPath = item.path();
	myMethodName = item.myLocation.method().name();
	myLineNumber = item.line();
	myVariables = item.myVariables;
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:12,代码来源:StackFrameItem.java

示例6: shouldDisplay

import com.intellij.debugger.engine.DebuggerUtils; //导入方法依赖的package包/类
protected boolean shouldDisplay(EvaluationContext context, @NotNull ObjectReference objInstance, @NotNull Field field)
{
	final boolean isSynthetic = DebuggerUtils.isSynthetic(field);
	if(!SHOW_SYNTHETICS && isSynthetic)
	{
		return false;
	}
	if(SHOW_VAL_FIELDS_AS_LOCAL_VARIABLES && isSynthetic)
	{
		try
		{
			final StackFrameProxy frameProxy = context.getFrameProxy();
			if(frameProxy != null)
			{
				final Location location = frameProxy.location();
				if(location != null && objInstance.equals(context.getThisObject()) && Comparing.equal(objInstance.referenceType(), location.declaringType()) && StringUtil.startsWith(field.name()
						, FieldDescriptorImpl.OUTER_LOCAL_VAR_FIELD_PREFIX))
				{
					return false;
				}
			}
		}
		catch(EvaluateException ignored)
		{
		}
	}

	// dont show static fields
	return !field.isStatic();
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:31,代码来源:ClassRenderer.java

示例7: isOuterLocalVariableValue

import com.intellij.debugger.engine.DebuggerUtils; //导入方法依赖的package包/类
public boolean isOuterLocalVariableValue()
{
	try
	{
		return DebuggerUtils.isSynthetic(myField) && myField.name().startsWith(OUTER_LOCAL_VAR_FIELD_PREFIX);
	}
	catch(UnsupportedOperationException ignored)
	{
		return false;
	}
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:12,代码来源:FieldDescriptorImpl.java


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