C# Class Antlr4.Runtime.Atn.ATNDeserializer

Exibir arquivo Open project: antlr/antlr4 Class Usage Examples

Public Properties

Property Type Description
SerializedUuid System.Guid
SerializedVersion int

Public Methods

Method Description
ATNDeserializer ( ATNDeserializationOptions deserializationOptions ) : System
Deserialize ( char data ) : ATN

Protected Methods

Method Description
CheckCondition ( bool condition ) : void
CheckCondition ( bool condition, string message ) : void
CheckUUID ( ) : void
CheckVersion ( ) : void
GenerateRuleBypassTransitions ( ATN atn ) : void
IsFeatureSupported ( System.Guid feature, System.Guid actualUuid ) : bool

Determines if a particular serialized representation of an ATN supports a particular feature, identified by the Guid used for serializing the ATN at the time the feature was first introduced.

LexerActionFactory ( LexerActionType type, int data1, int data2 ) : ILexerAction
MarkPrecedenceDecisions ( ATN atn ) : void

Analyze the StarLoopEntryState states in the specified ATN to set the StarLoopEntryState.precedenceRuleDecision field to the correct value.

OptimizeATN ( ATN atn ) : void
ReadATN ( ) : ATN
ReadDecisions ( ATN atn ) : void
ReadEdges ( ATN atn, IList sets ) : void
ReadInt ( ) : int
ReadInt32 ( ) : int
ReadLexerActions ( ATN atn ) : void
ReadLong ( ) : long
ReadModes ( ATN atn ) : void
ReadRules ( ATN atn ) : void
ReadSets ( ATN atn ) : IList
ReadStates ( ATN atn ) : void
ReadUUID ( ) : System.Guid
Reset ( char data ) : void
StateFactory ( StateType type, int ruleIndex ) : ATNState
VerifyATN ( ATN atn ) : void

Private Methods

Method Description
ATNDeserializer ( ) : System
CombineChainedEpsilons ( ATN atn ) : int
EdgeFactory ( ATN atn, TransitionType type, int src, int trg, int arg1, int arg2, int arg3, IList sets ) : Transition
IdentifyTailCalls ( ATN atn ) : void
InlineSetRules ( ATN atn ) : int
OptimizeSets ( ATN atn, bool preserveOrder ) : int
TestTailCall ( ATN atn, RuleTransition transition, bool optimizedPath ) : bool

Method Details

ATNDeserializer() public method

public ATNDeserializer ( ATNDeserializationOptions deserializationOptions ) : System
deserializationOptions ATNDeserializationOptions
return System

CheckCondition() protected method

protected CheckCondition ( bool condition ) : void
condition bool
return void

CheckCondition() protected method

protected CheckCondition ( bool condition, string message ) : void
condition bool
message string
return void

CheckUUID() protected method

protected CheckUUID ( ) : void
return void

CheckVersion() protected method

protected CheckVersion ( ) : void
return void

Deserialize() public method

public Deserialize ( char data ) : ATN
data char
return ATN

GenerateRuleBypassTransitions() protected method

protected GenerateRuleBypassTransitions ( ATN atn ) : void
atn ATN
return void

IsFeatureSupported() protected method

Determines if a particular serialized representation of an ATN supports a particular feature, identified by the Guid used for serializing the ATN at the time the feature was first introduced.
protected IsFeatureSupported ( System.Guid feature, System.Guid actualUuid ) : bool
feature System.Guid /// The /// /// marking the first time the feature was /// supported in the serialized ATN. ///
actualUuid System.Guid /// The /// /// of the actual serialized ATN which is /// currently being deserialized. ///
return bool

LexerActionFactory() protected method

protected LexerActionFactory ( LexerActionType type, int data1, int data2 ) : ILexerAction
type LexerActionType
data1 int
data2 int
return ILexerAction

MarkPrecedenceDecisions() protected method

Analyze the StarLoopEntryState states in the specified ATN to set the StarLoopEntryState.precedenceRuleDecision field to the correct value.
protected MarkPrecedenceDecisions ( ATN atn ) : void
atn ATN The ATN.
return void

OptimizeATN() protected method

protected OptimizeATN ( ATN atn ) : void
atn ATN
return void

ReadATN() protected method

protected ReadATN ( ) : ATN
return ATN

ReadDecisions() protected method

protected ReadDecisions ( ATN atn ) : void
atn ATN
return void

ReadEdges() protected method

protected ReadEdges ( ATN atn, IList sets ) : void
atn ATN
sets IList
return void

ReadInt() protected method

protected ReadInt ( ) : int
return int

ReadInt32() protected method

protected ReadInt32 ( ) : int
return int

ReadLexerActions() protected method

protected ReadLexerActions ( ATN atn ) : void
atn ATN
return void

ReadLong() protected method

protected ReadLong ( ) : long
return long

ReadModes() protected method

protected ReadModes ( ATN atn ) : void
atn ATN
return void

ReadRules() protected method

protected ReadRules ( ATN atn ) : void
atn ATN
return void

ReadSets() protected method

protected ReadSets ( ATN atn ) : IList
atn ATN
return IList

ReadStates() protected method

protected ReadStates ( ATN atn ) : void
atn ATN
return void

ReadUUID() protected method

protected ReadUUID ( ) : System.Guid
return System.Guid

Reset() protected method

protected Reset ( char data ) : void
data char
return void

StateFactory() protected method

protected StateFactory ( StateType type, int ruleIndex ) : ATNState
type StateType
ruleIndex int
return ATNState

VerifyATN() protected method

protected VerifyATN ( ATN atn ) : void
atn ATN
return void

Property Details

SerializedUuid public_oe static_oe property

This is the current serialized UUID.
This is the current serialized UUID.
public static Guid,System SerializedUuid
return System.Guid

SerializedVersion public_oe static_oe property

public static int SerializedVersion
return int