All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vladsch.flexmark.util.ast.BlankLine Maven / Gradle / Ivy

There is a newer version: 4.15.102
Show newest version
package com.vladsch.flexmark.util.ast;

import com.vladsch.flexmark.util.sequence.BasedSequence;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public class BlankLine extends Block {
    private Block claimedBlankLine = null;

    public boolean isClaimed() {
        return claimedBlankLine != null;
    }

    @Nullable
    public Block getClaimedBlankLine() {
        return claimedBlankLine;
    }

    @SuppressWarnings("UnusedReturnValue")
    public BlankLine setClaimedBlankLine(@NotNull Block claimedBlankLine) {
        this.claimedBlankLine = claimedBlankLine;
        return this;
    }

    public BlankLine(@NotNull BasedSequence chars) {
        super(chars);
        setCharsFromContent();
    }

    public BlankLine(@NotNull BasedSequence chars, @NotNull Block claimedBlankLine) {
        super(chars);
        setCharsFromContent();
        this.claimedBlankLine = claimedBlankLine;
    }

    @NotNull
    @Override
    public BasedSequence[] getSegments() {
        return EMPTY_SEGMENTS;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy