本文整理汇总了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);
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例9: getProperties
import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
@NotNull
@Override
protected JavaLineBreakpointProperties getProperties() {
return myProperties;
}
示例10: getGroupingRules
import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
@Override
public List<XBreakpointGroupingRule<XLineBreakpoint<JavaLineBreakpointProperties>, ?>> getGroupingRules() {
return XDebuggerUtil.getInstance().getGroupingByFileRuleAsList();
}
示例11: createProperties
import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
@Nullable
@Override
public JavaLineBreakpointProperties createProperties() {
return new JavaLineBreakpointProperties();
}
示例12: createBreakpointProperties
import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
@Nullable
@Override
public JavaLineBreakpointProperties createBreakpointProperties(@NotNull VirtualFile file, int line) {
return new JavaLineBreakpointProperties();
}
示例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);
}
示例14: getBreakpointType
import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
@Override
public Class<? extends XLineBreakpointType<JavaLineBreakpointProperties>> getBreakpointType() {
return KotlinLineBreakpointType.class;
}
示例15: getBreakpointType
import org.jetbrains.java.debugger.breakpoints.properties.JavaLineBreakpointProperties; //导入依赖的package包/类
@Override
public Class<? extends XLineBreakpointType<JavaLineBreakpointProperties>> getBreakpointType() {
return ScalaLineBreakpointType.class;
}