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 |
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 |
---|---|
static Symbol.DefaultStartAction |
defaultStartAction(byte[] contents) |
static Symbol.EnumAdjustAction |
enumAdjustAction(int rsymCount,
Object[] adj) |
static Symbol.EnumLabelsAction |
enumLabelsAction(List<String> symbols)
For JSON.
|
static Symbol.FieldAdjustAction |
fieldAdjustAction(int rindex,
String fname) |
static Symbol.FieldOrderAction |
fieldOrderAction(Schema.Field[] fields) |
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.
|
static boolean |
hasErrors(Symbol symbol)
Returns true if the Parser contains any Error symbol, indicating that it may fail
for some inputs.
|
static Symbol.IntCheckAction |
intCheckAction(int size) |
static Symbol.SkipAction |
skipAction(Symbol symToSkip) |
static Symbol.UnionAdjustAction |
unionAdjustAction(int rindex,
Symbol sym) |
static Symbol.WriterUnionAction |
writerUnionAction() |
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.public static boolean hasErrors(Symbol symbol)
public static Symbol.IntCheckAction intCheckAction(int size)
public static Symbol.EnumAdjustAction enumAdjustAction(int rsymCount, Object[] adj)
public static Symbol.WriterUnionAction writerUnionAction()
public static Symbol.SkipAction skipAction(Symbol symToSkip)
public static Symbol.FieldAdjustAction fieldAdjustAction(int rindex, String fname)
public static Symbol.FieldOrderAction fieldOrderAction(Schema.Field[] fields)
public static Symbol.DefaultStartAction defaultStartAction(byte[] contents)
public static Symbol.UnionAdjustAction unionAdjustAction(int rindex, Symbol sym)
public static Symbol.EnumLabelsAction enumLabelsAction(List<String> symbols)
Copyright © 2009–2016 The Apache Software Foundation. All rights reserved.