Top Description Constructors Methods
de.undercouch.citeproc.bibtex

public Class PageParser

extends Object
Class Inheritance
Imports
de.undercouch.citeproc.bibtex.internal.InternalPageLexer, .InternalPageParser, .InternalPageParser.PagesContext, org.antlr.v4.runtime.CharStream, .CharStreams, .CommonTokenStream

Parses pages
Author
Michel Kraemer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static PageRanges

Returns:

the parsed page or page ranges (never null and never empty)
parse
(String
the page or range of pages
pages
)

Parses a given page or range of pages.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PageParserback to summary
public PageParser()

Method Detail

parseback to summary
public static PageRanges parse(String pages)

Parses a given page or range of pages. If the given string cannot be parsed, the method will return a single page range with a literal string.

Parameters
pages:String

the page or range of pages

Returns:PageRanges

the parsed page or page ranges (never null and never empty)