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 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[.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.
-
-
Constructor Details
-
Bracket
-
-
Method Details
-
link
-
withMarker
-