本文整理汇总了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;
}
示例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;
}
}
示例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;
}
示例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;
}
}
示例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;
}
示例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();
}
示例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;
}
}