|
Avro C#
|
The enum labels action. More...
Public Member Functions | |
| EnumLabelsAction (IList< string > symbols) | |
| Initializes a new instance of the Symbol.EnumLabelsAction class. | |
| virtual string | GetLabel (int n) |
| Returns the label at the given index. | |
| virtual int | FindLabel (string label) |
| Returns index of the given label. | |
Public Member Functions inherited from Avro.IO.Parsing.Symbol.IntCheckAction | |
| IntCheckAction (int size) | |
| Initializes a new instance of the Symbol.IntCheckAction class. | |
Public Member Functions inherited from Avro.IO.Parsing.Symbol | |
| virtual int | FlattenedSize () |
| Returns the flattened size. | |
Properties | |
| IList< string > | Symbols [get] |
| The symbols. | |
Properties inherited from Avro.IO.Parsing.Symbol.IntCheckAction | |
| int | Size [get] |
| The size. | |
Properties inherited from Avro.IO.Parsing.Symbol | |
| Kind | SymKind [get] |
| The kind of this symbol. | |
| Symbol[] | Production [get] |
The production for this symbol. If this symbol is a terminal this is null. Otherwise this holds the the sequence of the symbols that forms the production for this symbol. The sequence is in the reverse order of production. This is useful for easy copying onto parsing stack. | |
| static Symbol | Null = new Terminal("null") [get] |
| The terminal symbols for the grammar. | |
| static Symbol | Boolean = new Terminal("boolean") [get] |
| Boolean. | |
| static Symbol | Int = new Terminal("int") [get] |
| Int. | |
| static Symbol | Long = new Terminal("long") [get] |
| Long. | |
| static Symbol | Float = new Terminal("float") [get] |
| Float. | |
| static Symbol | Double = new Terminal("double") [get] |
| Double. | |
| static Symbol | String = new Terminal("string") [get] |
| String. | |
| static Symbol | Bytes = new Terminal("bytes") [get] |
| Bytes. | |
| static Symbol | Fixed = new Terminal("fixed") [get] |
| Fixed. | |
| static Symbol | Enum = new Terminal("enum") [get] |
| Enum. | |
| static Symbol | Union = new Terminal("union") [get] |
| Union. | |
| static Symbol | ArrayStart = new Terminal("array-start") [get] |
| ArrayStart. | |
| static Symbol | ArrayEnd = new Terminal("array-end") [get] |
| ArrayEnd. | |
| static Symbol | MapStart = new Terminal("map-start") [get] |
| MapStart. | |
| static Symbol | MapEnd = new Terminal("map-end") [get] |
| MapEnd. | |
| static Symbol | ItemEnd = new Terminal("item-end") [get] |
| ItemEnd. | |
| static Symbol | WriterUnion = new WriterUnionAction() [get] |
| WriterUnion. | |
| static Symbol | FieldAction = new Terminal("field-action") [get] |
| FieldAction - a pseudo terminal used by parsers. | |
| static Symbol | RecordStart = new ImplicitAction(false) [get] |
| RecordStart. | |
| static Symbol | RecordEnd = new ImplicitAction(true) [get] |
| RecordEnd. | |
| static Symbol | UnionEnd = new ImplicitAction(true) [get] |
| UnionEnd. | |
| static Symbol | FieldEnd = new ImplicitAction(true) [get] |
| FieldEnd. | |
| static Symbol | DefaultEndAction = new ImplicitAction(true) [get] |
| DefaultEndAction. | |
| static Symbol | MapKeyMarker = new Terminal("map-key-marker") [get] |
| MapKeyMarker. | |
Additional Inherited Members | |
Public Types inherited from Avro.IO.Parsing.Symbol | |
| enum | Kind { Terminal , Root , Sequence , Repeater , Alternative , ImplicitAction , ExplicitAction } |
| The type of symbol. More... | |
Static Public Member Functions inherited from Avro.IO.Parsing.Symbol | |
| static Symbol | NewRoot (params Symbol[] symbols) |
| A convenience method to construct a root symbol. | |
| static Symbol | NewSeq (params Symbol[] production) |
| A convenience method to construct a sequence. | |
| static Symbol | NewRepeat (Symbol endSymbol, params Symbol[] symsToRepeat) |
| A convenience method to construct a repeater. | |
| static Symbol | NewAlt (Symbol[] symbols, string[] labels) |
| A convenience method to construct a union. | |
Protected Member Functions inherited from Avro.IO.Parsing.Symbol | |
| Symbol (Kind kind) | |
| Constructs a new symbol of the given kind. | |
| Symbol (Kind kind, Symbol[] production) | |
| Constructs a new symbol of the given kind and production. | |
| virtual Symbol | Flatten (IDictionary< Sequence, Sequence > map, IDictionary< Sequence, IList< Fixup > > map2) |
| Flatten the given sub-array of symbols into a sub-array of symbols. | |
Static Protected Member Functions inherited from Avro.IO.Parsing.Symbol | |
| static Symbol | Error (string e) |
| A convenience method to construct an ErrorAction. | |
| static Symbol | Resolve (Symbol w, Symbol r) |
| A convenience method to construct a ResolvingAction. | |
| static void | Flatten (Symbol[] input, int start, Symbol[] output, int skip, IDictionary< Sequence, Sequence > map, IDictionary< Sequence, IList< Fixup > > map2) |
Flattens the given sub-array of symbols into an sub-array of symbols. Every Sequence in the input are replaced by its production recursively. Non-Sequence symbols, they internally have other symbols those internal symbols also get flattened. When flattening is done, the only place there might be Sequence symbols is in the productions of a Repeater, Alternative, or the symToParse and symToSkip in a UnionAdjustAction or SkipAction. | |
| static int | FlattenedSize (Symbol[] symbols, int start) |
| Returns the amount of space required to flatten the given sub-array of symbols. | |
The enum labels action.