當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。