Package org.commonmark.internal.util
Class LinkScanner
- java.lang.Object
-
- org.commonmark.internal.util.LinkScanner
-
public class LinkScanner extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LinkScanner()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static boolean
isEscapable(char c)
static boolean
scanLinkDestination(Scanner scanner)
Attempt to scan a link destination, stopping after the destination or returning false.private static boolean
scanLinkDestinationWithBalancedParens(Scanner scanner)
static boolean
scanLinkLabelContent(Scanner scanner)
Attempt to scan the contents of a link label (inside the brackets), stopping after the content or returning false.static boolean
scanLinkTitle(Scanner scanner)
static boolean
scanLinkTitleContent(Scanner scanner, char endDelimiter)
-
-
-
Method Detail
-
scanLinkLabelContent
public static boolean scanLinkLabelContent(Scanner scanner)
Attempt to scan the contents of a link label (inside the brackets), stopping after the content or returning false. The stopped position can bei either the closing]
, or the end of the line if the label continues on the next line.
-
scanLinkDestination
public static boolean scanLinkDestination(Scanner scanner)
Attempt to scan a link destination, stopping after the destination or returning false.
-
scanLinkTitle
public static boolean scanLinkTitle(Scanner scanner)
-
scanLinkTitleContent
public static boolean scanLinkTitleContent(Scanner scanner, char endDelimiter)
-
scanLinkDestinationWithBalancedParens
private static boolean scanLinkDestinationWithBalancedParens(Scanner scanner)
-
isEscapable
private static boolean isEscapable(char c)
-
-