Top Description Fields Constructors Methods
org.antlr.v4.runtime.dfa

public Class DFASerializer

extends Object
Class Inheritance
Known Direct Subclasses
org.antlr.v4.runtime.dfa.LexerDFASerializer
Imports
org.antlr.v4.runtime.Vocabulary, .VocabularyImpl, java.util.Arrays, .List

A DFA walker that knows how to dump them to serialized strings.

Field Summary

Modifier and TypeField and Description
private final DFA
private final Vocabulary

Constructor Summary

AccessConstructor and Description
public
DFASerializer(DFA dfa, String[] tokenNames)

Deprecated Use DFASerializer(DFA, Vocabulary) instead.
public
DFASerializer(DFA dfa, Vocabulary vocabulary)

Method Summary

Modifier and TypeMethod and Description
protected String
getEdgeLabel(int i)

protected String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

dfaback to summary
private final DFA dfa
vocabularyback to summary
private final Vocabulary vocabulary

Constructor Detail

DFASerializerback to summary
public DFASerializer(DFA dfa, String[] tokenNames)

Deprecated

Use DFASerializer(DFA, Vocabulary) instead.

Annotations
@Deprecated
DFASerializerback to summary
public DFASerializer(DFA dfa, Vocabulary vocabulary)

Method Detail

getEdgeLabelback to summary
protected String getEdgeLabel(int i)
getStateStringback to summary
protected String getStateString(DFAState s)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override