|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avro.io.parsing.Symbol
public abstract class Symbol
Symbol is the base of all symbols (terminals and non-terminals) of the grammar.
Nested Class Summary | |
---|---|
static class |
Symbol.Alternative
|
static class |
Symbol.DefaultStartAction
|
static class |
Symbol.EnumAdjustAction
|
static class |
Symbol.EnumLabelsAction
For JSON. |
static class |
Symbol.ErrorAction
|
static class |
Symbol.FieldAdjustAction
|
static class |
Symbol.FieldOrderAction
|
static class |
Symbol.ImplicitAction
|
static class |
Symbol.IntCheckAction
|
static class |
Symbol.Kind
|
static class |
Symbol.Repeater
|
static class |
Symbol.ResolvingAction
|
protected static class |
Symbol.Root
|
protected static class |
Symbol.Sequence
|
static class |
Symbol.SkipAction
|
static class |
Symbol.UnionAdjustAction
|
static class |
Symbol.WriterUnionAction
|
Field Summary | |
---|---|
static Symbol |
ARRAY_END
|
static Symbol |
ARRAY_START
|
static Symbol |
BOOLEAN
|
static Symbol |
BYTES
|
static Symbol |
DEFAULT_END_ACTION
|
static Symbol |
DOUBLE
|
static Symbol |
ENUM
|
static Symbol |
FIELD_ACTION
|
static Symbol |
FIXED
|
static Symbol |
FLOAT
|
static Symbol |
INT
|
static Symbol |
ITEM_END
|
Symbol.Kind |
kind
|
static Symbol |
LONG
|
static Symbol |
MAP_END
|
static Symbol |
MAP_KEY_MARKER
|
static Symbol |
MAP_START
|
static Symbol |
NULL
The terminal symbols for the grammar. |
Symbol[] |
production
The production for this symbol. |
static Symbol |
RECORD_END
|
static Symbol |
RECORD_START
|
static Symbol |
STRING
|
static Symbol |
UNION
|
static Symbol |
UNION_END
|
Constructor Summary | |
---|---|
protected |
Symbol(Symbol.Kind kind)
Constructs a new symbol of the given kind kind. |
protected |
Symbol(Symbol.Kind kind,
Symbol[] production)
|
Method Summary | |
---|---|
Symbol |
flatten(Map<Symbol.Sequence,Symbol.Sequence> map,
Map<Symbol.Sequence,List<org.apache.avro.io.parsing.Symbol.Fixup>> map2)
|
int |
flattenedSize()
|
protected static int |
flattenedSize(Symbol[] symbols,
int start)
Returns the amount of space required to flatten the given sub-array of symbols. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Symbol.Kind kind
public final Symbol[] production
public static final Symbol NULL
public static final Symbol BOOLEAN
public static final Symbol INT
public static final Symbol LONG
public static final Symbol FLOAT
public static final Symbol DOUBLE
public static final Symbol STRING
public static final Symbol BYTES
public static final Symbol FIXED
public static final Symbol ENUM
public static final Symbol UNION
public static final Symbol ARRAY_START
public static final Symbol ARRAY_END
public static final Symbol MAP_START
public static final Symbol MAP_END
public static final Symbol ITEM_END
public static final Symbol FIELD_ACTION
public static final Symbol RECORD_START
public static final Symbol RECORD_END
public static final Symbol UNION_END
public static final Symbol DEFAULT_END_ACTION
public static final Symbol MAP_KEY_MARKER
Constructor Detail |
---|
protected Symbol(Symbol.Kind kind)
protected Symbol(Symbol.Kind kind, Symbol[] production)
Method Detail |
---|
public Symbol flatten(Map<Symbol.Sequence,Symbol.Sequence> map, Map<Symbol.Sequence,List<org.apache.avro.io.parsing.Symbol.Fixup>> map2)
public int flattenedSize()
protected static int flattenedSize(Symbol[] symbols, int start)
symbols
- The array of input symbols.start
- The index where the subarray starts.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |