.bst file.
BstVM cannot be used as a static, style-agnostic machine because each instance holds the
parse tree of one concrete .bst program. It also keeps the latest execution context for
testing/debugging, so callers should treat it as style-specific runtime state rather than a
global utility.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| protected static final Integer | |
| private @Nullable BstVMContext | |
| private @Nullable Path | |
| protected final ParseTree | |
| protected static final Integer |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| protected | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static ParseTree | |
| private boolean | |
| pack-priv BstVMContext | |
| public boolean | |
| public String | Returns: list of references in plain text formlist of entries to convert bibEntries, BibDatabase the bibDatabase used for resolving strings / crossref bibDatabase)Transforms the given list of BibEntries to a rendered list of references using the parsed bst program |
| public String |
| FALSE | back to summary |
|---|---|
| protected static final Integer FALSE | |
| latestContext | back to summary |
|---|---|
| private @Nullable BstVMContext latestContext | |
| path | back to summary |
|---|---|
| private @Nullable Path path | |
| tree | back to summary |
|---|---|
| protected final ParseTree tree | |
| TRUE | back to summary |
|---|---|
| protected static final Integer TRUE | |
| BstVM | back to summary |
|---|---|
| public BstVM(Path path) throws RecognitionException, IOException | |
| BstVM | back to summary |
|---|---|
| public BstVM(String s) throws RecognitionException | |
| BstVM | back to summary |
|---|---|
| protected BstVM(CharStream bst) throws RecognitionException | |
| BstVM | back to summary |
|---|---|
| private BstVM(ParseTree tree) | |
| charStream2CommonTree | back to summary |
|---|---|
| private static ParseTree charStream2CommonTree(CharStream query) | |
| containsSortCommand | back to summary |
|---|---|
| private boolean containsSortCommand(ParseTree parseTree) | |
| getContext | back to summary |
|---|---|
pack-priv BstVMContext getContext()
| |
| hasSortCommand | back to summary |
|---|---|
| public boolean hasSortCommand() | |
| render | back to summary |
|---|---|
| public String render(List<BibEntry> bibEntries, BibDatabase bibDatabase) Transforms the given list of BibEntries to a rendered list of references using the parsed bst program
| |
| render | back to summary |
|---|---|
| public String render(List<BibEntry> bibEntries) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final BstVM. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, RecognitionException e)
Overrides org. Implements org. Upon syntax error, notify any interested parties. |
| INSTANCE | back to summary |
|---|---|
| public static final BstVM. | |
| ThrowingErrorListener | back to summary |
|---|---|
| private ThrowingErrorListener() | |
| syntaxError | back to summary |
|---|---|
| public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, RecognitionException e) throws ParseCancellationException Overrides org. Implements org. Doc from org. Upon syntax error, notify any interested parties. This is not how to
recover from errors or compute error messages. The
| |