Top Description Constructors Methods
de.undercouch.citeproc.csl.internal.helper

public Class NumberParser

extends Object
Class Inheritance
Imports
de.undercouch.citeproc.csl.CSLLabel, org.antlr.v4.runtime.CharStream, .CharStreams, .CommonTokenStream, java.util.Collections, .List

Parses numbers with labels
Author
Michel Kraemer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static List<NumberElement>

Returns:

the list of elements
parse
(String
the numbers and labels to parse
number
)

Parse numbers with labels to a list of elements.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NumberParserback to summary
public NumberParser()

Method Detail

parseback to summary
public static List<NumberElement> parse(String number)

Parse numbers with labels to a list of elements. An element is a string with an optional label as well as a flag specifying whether the string contains multiple numbers (or a range) or a single number.

Parameters
number:String

the numbers and labels to parse

Returns:List<NumberElement>

the list of elements