Package org.commonmark.internal
Class Bracket
java.lang.Object
org.commonmark.internal.Bracket
Opening bracket for links (
[
), images (![
), or links with other markers.-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
Whether this bracket is allowed to form a link/image (also known as "active").boolean
Whether there is an unescaped bracket (opening or closing) after this opening bracket in the text parsed so far.final Text
The node of[
.final Position
The position of[
.final Position
The position of the content (after the opening bracket)final Text
The node of a marker such as!
if present, null otherwise.final Position
The position of the marker if present, null otherwise.final Bracket
Previous bracket.final Delimiter
Previous delimiter (emphasis, etc) before this bracket. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Bracket
link
(Text bracketNode, Position bracketPosition, Position contentPosition, Bracket previous, Delimiter previousDelimiter) static Bracket
withMarker
(Text markerNode, Position markerPosition, Text bracketNode, Position bracketPosition, Position contentPosition, Bracket previous, Delimiter previousDelimiter)
-
Field Details
-
markerNode
The node of a marker such as!
if present, null otherwise. -
markerPosition
The position of the marker if present, null otherwise. -
bracketNode
The node of[
. -
bracketPosition
The position of[
. -
contentPosition
The position of the content (after the opening bracket) -
previous
Previous bracket. -
previousDelimiter
Previous delimiter (emphasis, etc) before this bracket. -
allowed
public boolean allowedWhether this bracket is allowed to form a link/image (also known as "active"). -
bracketAfter
public boolean bracketAfterWhether there is an unescaped bracket (opening or closing) after this opening bracket in the text parsed so far.
-
-
Constructor Details
-
Bracket
-
-
Method Details
-
link
-
withMarker
-