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


Java DebuggerUtilsEx.readFilters方法代码示例

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


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

示例1: readExternal

import com.intellij.debugger.impl.DebuggerUtilsEx; //导入方法依赖的package包/类
public void readExternal(Element parentNode) throws InvalidDataException {
  DefaultJDOMExternalizer.readExternal(this, parentNode);
  if (DebuggerSettings.SUSPEND_NONE.equals(SUSPEND_POLICY)) { // compatibility with older format
    SUSPEND = false;
    SUSPEND_POLICY = DebuggerSettings.SUSPEND_ALL;
  }
  String condition = JDOMExternalizerUtil.readField(parentNode, CONDITION_OPTION_NAME);
  if (condition != null) {
    setCondition(new TextWithImportsImpl(CodeFragmentKind.EXPRESSION, condition));
  }

  myClassFilters = DebuggerUtilsEx.readFilters(parentNode.getChildren(FILTER_OPTION_NAME));
  myClassExclusionFilters = DebuggerUtilsEx.readFilters(parentNode.getChildren(EXCLUSION_FILTER_OPTION_NAME));

  final ClassFilter [] instanceFilters = DebuggerUtilsEx.readFilters(parentNode.getChildren(INSTANCE_ID_OPTION_NAME));
  final List<InstanceFilter> iFilters = new ArrayList<InstanceFilter>(instanceFilters.length);

  for (ClassFilter instanceFilter : instanceFilters) {
    try {
      iFilters.add(InstanceFilter.create(instanceFilter));
    }
    catch (Exception e) {
    }
  }
  myInstanceFilters = iFilters.isEmpty() ? InstanceFilter.EMPTY_ARRAY : iFilters.toArray(new InstanceFilter[iFilters.size()]);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:27,代码来源:FilteredRequestorImpl.java

示例2: readExternal

import com.intellij.debugger.impl.DebuggerUtilsEx; //导入方法依赖的package包/类
@SuppressWarnings({"HardCodedStringLiteral"})
public void readExternal(Element element) throws InvalidDataException {
  super.readExternal(element);
  final String value = JDOMExternalizerUtil.readField(element, "USE_CLASS_FILTERS");
  USE_CLASS_FILTERS = "true".equalsIgnoreCase(value);
  myClassFilters = DebuggerUtilsEx.readFilters(element.getChildren("filter"));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:ToStringRenderer.java

示例3: readExternal

import com.intellij.debugger.impl.DebuggerUtilsEx; //导入方法依赖的package包/类
@Override
@SuppressWarnings({"HardCodedStringLiteral"})
public void readExternal(Element element)
{
	super.readExternal(element);

	ON_DEMAND = Boolean.parseBoolean(JDOMExternalizerUtil.readField(element, "ON_DEMAND"));
	USE_CLASS_FILTERS = Boolean.parseBoolean(JDOMExternalizerUtil.readField(element, "USE_CLASS_FILTERS"));
	myClassFilters = DebuggerUtilsEx.readFilters(element.getChildren("filter"));
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:11,代码来源:ToStringRenderer.java

示例4: readExternal

import com.intellij.debugger.impl.DebuggerUtilsEx; //导入方法依赖的package包/类
@Override
public void readExternal(Element parentNode) throws InvalidDataException
{
	DefaultJDOMExternalizer.readExternal(this, parentNode);
	if(DebuggerSettings.SUSPEND_NONE.equals(SUSPEND_POLICY))
	{ // compatibility with older format
		SUSPEND = false;
		SUSPEND_POLICY = DebuggerSettings.SUSPEND_ALL;
	}
	String condition = JDOMExternalizerUtil.readField(parentNode, CONDITION_OPTION_NAME);
	if(condition != null)
	{
		setCondition(new TextWithImportsImpl(CodeFragmentKind.EXPRESSION, condition));
	}

	myClassFilters = DebuggerUtilsEx.readFilters(parentNode.getChildren(FILTER_OPTION_NAME));
	myClassExclusionFilters = DebuggerUtilsEx.readFilters(parentNode.getChildren(EXCLUSION_FILTER_OPTION_NAME));

	final ClassFilter[] instanceFilters = DebuggerUtilsEx.readFilters(parentNode.getChildren(INSTANCE_ID_OPTION_NAME));
	final List<InstanceFilter> iFilters = new ArrayList<InstanceFilter>(instanceFilters.length);

	for(ClassFilter instanceFilter : instanceFilters)
	{
		try
		{
			iFilters.add(InstanceFilter.create(instanceFilter));
		}
		catch(Exception e)
		{
		}
	}
	myInstanceFilters = iFilters.isEmpty() ? InstanceFilter.EMPTY_ARRAY : iFilters.toArray(new InstanceFilter[iFilters.size()]);
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:34,代码来源:FilteredRequestorImpl.java


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