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


Java JavaLineBreakpointProperties类代码示例

本文整理汇总了Java中org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties的典型用法代码示例。如果您正苦于以下问题:Java JavaLineBreakpointProperties类的具体用法?Java JavaLineBreakpointProperties怎么用?Java JavaLineBreakpointProperties使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


JavaLineBreakpointProperties类属于org.jetbrains.java.debugger.breakpoints.properties包,在下文中一共展示了JavaLineBreakpointProperties类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getContainingMethod

import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
@Nullable
public PsiElement getContainingMethod(@NotNull LineBreakpoint<?> breakpoint) {
  SourcePosition position = breakpoint.getSourcePosition();
  if (position == null) return null;

  JavaBreakpointProperties properties = breakpoint.getProperties();
  if (properties instanceof JavaLineBreakpointProperties && !(breakpoint instanceof RunToCursorBreakpoint)) {
    Integer ordinal = ((JavaLineBreakpointProperties)properties).getLambdaOrdinal();
    if (ordinal > -1) {
      List<PsiLambdaExpression> lambdas = DebuggerUtilsEx.collectLambdas(position, true);
      if (ordinal < lambdas.size()) {
        return lambdas.get(ordinal);
      }
    }
  }
  return DebuggerUtilsEx.getContainingMethod(position);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:JavaLineBreakpointType.java

示例2: getHighlightRange

import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
@Nullable
@Override
public TextRange getHighlightRange(XLineBreakpoint<JavaLineBreakpointProperties> breakpoint) {
  JavaLineBreakpointProperties properties = breakpoint.getProperties();
  if (properties != null) {
    Integer ordinal = properties.getLambdaOrdinal();
    if (ordinal != null) {
      Breakpoint javaBreakpoint = BreakpointManager.getJavaBreakpoint(breakpoint);
      if (javaBreakpoint instanceof LineBreakpoint) {
        PsiElement method = getContainingMethod((LineBreakpoint)javaBreakpoint);
        if (method != null) {
          return method.getTextRange();
        }
      }
    }
  }
  return null;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:19,代码来源:JavaLineBreakpointType.java

示例3: matchesPosition

import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
public boolean matchesPosition(@NotNull LineBreakpoint<?> breakpoint, @NotNull SourcePosition position)
{
	JavaBreakpointProperties properties = breakpoint.getProperties();
	if(properties instanceof JavaLineBreakpointProperties)
	{
		if(!(breakpoint instanceof RunToCursorBreakpoint) && ((JavaLineBreakpointProperties) properties).getLambdaOrdinal() == null)
		{
			return true;
		}
		PsiElement containingMethod = getContainingMethod(breakpoint);
		if(containingMethod == null)
		{
			return false;
		}
		return DebuggerUtilsEx.inTheMethod(position, containingMethod);
	}
	return true;
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:19,代码来源:JavaLineBreakpointType.java

示例4: getContainingMethod

import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
@Nullable
public PsiElement getContainingMethod(@NotNull LineBreakpoint<?> breakpoint)
{
	SourcePosition position = breakpoint.getSourcePosition();
	if(position == null)
	{
		return null;
	}

	JavaBreakpointProperties properties = breakpoint.getProperties();
	if(properties instanceof JavaLineBreakpointProperties && !(breakpoint instanceof RunToCursorBreakpoint))
	{
		Integer ordinal = ((JavaLineBreakpointProperties) properties).getLambdaOrdinal();
		if(ordinal > -1)
		{
			List<PsiLambdaExpression> lambdas = DebuggerUtilsEx.collectLambdas(position, true);
			if(ordinal < lambdas.size())
			{
				return lambdas.get(ordinal);
			}
		}
	}
	return DebuggerUtilsEx.getContainingMethod(position);
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:25,代码来源:JavaLineBreakpointType.java

示例5: getHighlightRange

import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
@Nullable
@Override
public TextRange getHighlightRange(XLineBreakpoint<JavaLineBreakpointProperties> breakpoint)
{
	Integer ordinal = getLambdaOrdinal(breakpoint);
	if(ordinal != null)
	{
		Breakpoint javaBreakpoint = BreakpointManager.getJavaBreakpoint(breakpoint);
		if(javaBreakpoint instanceof LineBreakpoint)
		{
			PsiElement method = getContainingMethod((LineBreakpoint) javaBreakpoint);
			if(method != null)
			{
				return method.getTextRange();
			}
		}
	}
	return null;
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:20,代码来源:JavaLineBreakpointType.java

示例6: matchesPosition

import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
public boolean matchesPosition(@NotNull LineBreakpoint<?> breakpoint, @NotNull SourcePosition position) {
  JavaBreakpointProperties properties = breakpoint.getProperties();
  if (properties instanceof JavaLineBreakpointProperties) {
    if (!(breakpoint instanceof RunToCursorBreakpoint) && ((JavaLineBreakpointProperties)properties).getLambdaOrdinal() == null) return true;
    PsiElement containingMethod = getContainingMethod(breakpoint);
    if (containingMethod == null) return false;
    return DebuggerUtilsEx.inTheMethod(position, containingMethod);
  }
  return true;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:JavaLineBreakpointType.java

示例7: createProperties

import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
@NotNull
@Override
public JavaLineBreakpointProperties createProperties()
{
	JavaLineBreakpointProperties properties = super.createProperties();
	assert properties != null;
	properties.setLambdaOrdinal(myLambdaOrdinal);
	return properties;
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:10,代码来源:JavaLineBreakpointType.java

示例8: getSourcePosition

import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
@Override
public XSourcePosition getSourcePosition(@NotNull XBreakpoint<JavaLineBreakpointProperties> breakpoint)
{
	Integer ordinal = getLambdaOrdinal(breakpoint);
	if(ordinal != null && ordinal > -1)
	{
		SourcePosition linePosition = createLineSourcePosition((XLineBreakpointImpl) breakpoint);
		if(linePosition != null)
		{
			return DebuggerUtilsEx.toXSourcePosition(new PositionManagerImpl.JavaSourcePosition(linePosition, ordinal));
		}
	}
	return null;
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:15,代码来源:JavaLineBreakpointType.java

示例9: getProperties

import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
@NotNull
@Override
protected JavaLineBreakpointProperties getProperties() {
  return myProperties;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:RunToCursorBreakpoint.java

示例10: getGroupingRules

import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
@Override
public List<XBreakpointGroupingRule<XLineBreakpoint<JavaLineBreakpointProperties>, ?>> getGroupingRules() {
  return XDebuggerUtil.getInstance().getGroupingByFileRuleAsList();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:JavaLineBreakpointType.java

示例11: createProperties

import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
@Nullable
@Override
public JavaLineBreakpointProperties createProperties() {
  return new JavaLineBreakpointProperties();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:JavaLineBreakpointType.java

示例12: createBreakpointProperties

import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
@Nullable
@Override
public JavaLineBreakpointProperties createBreakpointProperties(@NotNull VirtualFile file, int line) {
  return new JavaLineBreakpointProperties();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:JavaLineBreakpointType.java

示例13: createJavaBreakpoint

import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
@NotNull
@Override
public Breakpoint<JavaLineBreakpointProperties> createJavaBreakpoint(Project project, XBreakpoint breakpoint) {
  return new LineBreakpoint<JavaLineBreakpointProperties>(project, breakpoint);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:JavaLineBreakpointType.java

示例14: getBreakpointType

import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
@Override
public Class<? extends XLineBreakpointType<JavaLineBreakpointProperties>> getBreakpointType() {
    return KotlinLineBreakpointType.class;
}
 
开发者ID:konsoletyper,项目名称:teavm,代码行数:5,代码来源:TeaVMKotlinBreakpointProvider.java

示例15: getBreakpointType

import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
@Override
public Class<? extends XLineBreakpointType<JavaLineBreakpointProperties>> getBreakpointType() {
    return ScalaLineBreakpointType.class;
}
 
开发者ID:konsoletyper,项目名称:teavm,代码行数:5,代码来源:TeaVMScalaBreakpointProvider.java


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