java.lang.Object
org.commonmark.internal.Bracket
Opening bracket for links (
[), images (![), or links with other markers.-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhether this bracket is allowed to form a link/image (also known as "active").booleanWhether there is an unescaped bracket (opening or closing) after this opening bracket in the text parsed so far.final TextThe node of[.final PositionThe position of[.intHow deeply nested the most deeply nested node in the content of this bracket is, updated as nodes are added.final PositionThe position of the content (after the opening bracket)final TextThe node of a marker such as!if present, null otherwise.final PositionThe position of the marker if present, null otherwise.final BracketPrevious bracket.final DelimiterPrevious delimiter (emphasis, etc) before this bracket. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Bracketlink(Text bracketNode, Position bracketPosition, Position contentPosition, Bracket previous, Delimiter previousDelimiter) static BracketwithMarker(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. -
contentNestingDepth
public int contentNestingDepthHow deeply nested the most deeply nested node in the content of this bracket is, updated as nodes are added. Used to limit nesting when this bracket forms a link/image, without having to look at the content nodes (of which there can be many).
-
-
Constructor Details
-
Bracket
-
-
Method Details
-
link
-
withMarker
-