Package org.commonmark.internal
Class Bracket
- java.lang.Object
-
- org.commonmark.internal.Bracket
-
public class Bracket extends java.lang.ObjectOpening bracket for links ([) or images (![).
-
-
Field Summary
Fields Modifier and Type Field Description booleanallowedWhether this bracket is allowed to form a link/image (also known as "active").booleanbracketAfterWhether there is an unescaped bracket (opening or closing) anywhere after this opening bracket.PositioncontentPositionThe position of the content (after the opening bracket)booleanimageWhether this is an image or link.PositionmarkerPositionThe position of the marker for the bracket ([or![)TextnodeBracketpreviousPrevious bracket.DelimiterpreviousDelimiterPrevious delimiter (emphasis, etc) before this bracket.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Bracketimage(Text node, Position markerPosition, Position contentPosition, Bracket previous, Delimiter previousDelimiter)static Bracketlink(Text node, Position markerPosition, Position contentPosition, Bracket previous, Delimiter previousDelimiter)
-
-
-
Field Detail
-
node
public final Text node
-
markerPosition
public final Position markerPosition
The position of the marker for the bracket ([or![)
-
contentPosition
public final Position contentPosition
The position of the content (after the opening bracket)
-
image
public final boolean image
Whether this is an image or link.
-
previous
public final Bracket previous
Previous bracket.
-
previousDelimiter
public final Delimiter previousDelimiter
Previous delimiter (emphasis, etc) before this bracket.
-
allowed
public boolean allowed
Whether this bracket is allowed to form a link/image (also known as "active").
-
bracketAfter
public boolean bracketAfter
Whether there is an unescaped bracket (opening or closing) anywhere after this opening bracket.
-
-