public abstract class Symbol extends Object
Modifier and Type | Class and Description |
---|---|
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 |
Modifier and Type | Field and Description |
---|---|
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 |
FIELD_END |
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 |
Modifier | Constructor and Description |
---|---|
protected |
Symbol(Symbol.Kind kind)
Constructs a new symbol of the given kind kind.
|
protected |
Symbol(Symbol.Kind kind,
Symbol[] production) |
Modifier and Type | Method and Description |
---|---|
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.
|
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 FIELD_END
public static final Symbol DEFAULT_END_ACTION
public static final Symbol MAP_KEY_MARKER
protected Symbol(Symbol.Kind kind)
protected Symbol(Symbol.Kind kind, Symbol[] production)
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.Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.