Click or drag to resize

CdssLibraryParser Class

[Missing <summary> documentation for "T:SanteDB.Cdss.Xml.Antlr.CdssLibraryParser"]

Inheritance Hierarchy
SystemObject
  RecognizerIToken, ParserATNSimulator
    Parser
      SanteDB.Cdss.Xml.AntlrCdssLibraryParser

Namespace: SanteDB.Cdss.Xml.Antlr
Assembly: SanteDB.Cdss.Xml (in SanteDB.Cdss.Xml.dll) Version: 3.0.2081-alpha+424e72aeb77d4a8ba5755272e5fc2a3206eaa2f1
Syntax
public class CdssLibraryParser : Parser

The CdssLibraryParser type exposes the following members.

Constructors
 NameDescription
Public methodCdssLibraryParser(ITokenStream)Initializes a new instance of the CdssLibraryParser class
Public methodCdssLibraryParser(ITokenStream, TextWriter, TextWriter)Initializes a new instance of the CdssLibraryParser class
Top
Properties
 NameDescription
Public propertyAtn Get the ATN used by the recognizer for prediction.
(Inherited from RecognizerIToken, ParserATNSimulator)
Public propertyBuildParseTree Track the ParserRuleContext objects during the parse and hook them up using the children list so that it forms a parse tree. The ParserRuleContext returned from the start rule represents the root of the parse tree.

Note that if we are not building parse trees, rule contexts only point upwards. When a rule exits, it returns the context but that gets garbage collected if nobody holds a reference. It points upwards but nobody points at it.

When we build parse trees, we are adding all of these contexts to children list. Contexts are then not candidates for garbage collection.


(Inherited from Parser)
Public propertyContext
(Inherited from Parser)
Public propertyCurrentToken Match needs to return the current input symbol, which gets put into the label for the associated token ref; e.g., x=ID.
(Inherited from Parser)
Public propertyErrorHandler
(Inherited from Parser)
Public propertyErrorListenerDispatch
(Inherited from Parser)
Public propertyErrorListeners
(Inherited from RecognizerIToken, ParserATNSimulator)
Public propertyGrammarFileName
(Overrides Recognizer.GrammarFileName)
Public propertyInputStream
(Inherited from Parser)
Public propertyInterpreterGet the ATN interpreter used by the recognizer for prediction.
(Inherited from RecognizerIToken, ParserATNSimulator)
Public propertyNumberOfSyntaxErrorsGets the number of syntax errors reported during parsing.
(Inherited from Parser)
Public propertyParseInfo
(Inherited from Parser)
Public propertyParseListeners
(Inherited from Parser)
Public propertyPrecedenceGet the precedence level for the top-most precedence rule.
(Inherited from Parser)
Public propertyProfile
(Inherited from Parser)
Public propertyRuleContext
(Inherited from Parser)
Public propertyRuleIndexMapGet a map from rule names to rule indexes.
(Inherited from RecognizerIToken, ParserATNSimulator)
Public propertyRuleNames
(Overrides Recognizer.RuleNames)
Public propertySerializedAtn
(Overrides Recognizer.SerializedAtn)
Public propertySourceName
(Inherited from Parser)
Public propertyState Indicate that the recognizer has changed internal state that is consistent with the ATN state passed in.
(Inherited from RecognizerIToken, ParserATNSimulator)
Public propertyTokenFactory
(Inherited from Parser)
Public propertyTokenStream
(Inherited from Parser)
Public propertyTokenTypeMapGet a map from token names to token types.
(Inherited from RecognizerIToken, ParserATNSimulator)
Public propertyTrace During a parse is sometimes useful to listen in on the rule entry and exit events as well as token matches.
(Inherited from Parser)
Public propertyTrimParseTreeTrim the internal lists of the parse tree during parsing to conserve memory.
(Inherited from Parser)
Public propertyVocabulary
(Overrides Recognizer.Vocabulary)
Top
Methods
 NameDescription
Public methodAction
(Inherited from RecognizerIToken, ParserATNSimulator)
Protected methodAddContextToParseTree
(Inherited from Parser)
Public methodAddErrorListener
(Inherited from RecognizerIToken, ParserATNSimulator)
Public methodAddParseListener Registers listener to receive events during the parsing process.

To support output-preserving grammar transformations (including but not limited to left-recursion removal, automated left-factoring, and optimized code generation), calls to listener methods during the parse may differ substantially from calls made by Default used after the parse is complete. In particular, rule entry and exit events may occur in a different order during the parse than after the parser. In addition, calls to certain rule entry methods may be omitted.

With the following specific exceptions, calls to listener events are deterministic, i.e. for identical input the calls to listener methods will be the same.

  • Alterations to the grammar used to generate code may change the behavior of the listener calls.
  • Alterations to the command line options passed to ANTLR 4 when generating the parser may change the behavior of the listener calls.
  • Changing the version of the ANTLR Tool used to generate the parser may change the behavior of the listener calls.

(Inherited from Parser)
Public methodall_logic 
Public methodany_logic 
Public methodapply_action_statement 
Public methodassign_action_statement 
Public methodCompileParseTreePattern(String, Int32)The preferred method of getting a tree pattern.
(Inherited from Parser)
Public methodCompileParseTreePattern(String, Int32, Lexer) The same as CompileParseTreePattern(String, Int32) but specify a Lexer rather than trying to deduce it from this parser.
(Inherited from Parser)
Public methodConsume Consume and return the #getCurrentToken current symbol .

E.g., given the following input with A being the current lookahead symbol, this function moves the cursor to B and returns A .

            A B
            ^
            
If the parser is not in error recovery mode, the consumed symbol is added to the parse tree using AddChild(IToken) , and VisitTerminal(ITerminalNode) is called on any parse listeners. If the parser is in error recovery mode, the consumed symbol is added to the parse tree using AddErrorNode(IToken) , and VisitErrorNode(IErrorNode) is called on any parse listeners.
(Inherited from Parser)
Protected methodCreateTokenTypeMap
(Inherited from RecognizerIToken, ParserATNSimulator)
Public methodcsharp_logic 
Public methoddata_block 
Public methoddefine_fact 
Public methoddefine_model 
Public methoddefine_protocol 
Public methoddefine_rule 
Public methodDumpDFAFor debugging and other purposes.
(Inherited from Parser)
Public methodEnterLeftFactoredRule
(Inherited from Parser)
Public methodEnterOuterAlt
(Inherited from Parser)
Public methodEnterRecursionRule(ParserRuleContext, Int32)
(Inherited from Parser)
Obsolete
Public methodEnterRecursionRule(ParserRuleContext, Int32, Int32, Int32)
(Inherited from Parser)
Public methodEnterRuleAlways called by generated parsers upon entry to a rule.
(Inherited from Parser)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExitRule
(Inherited from Parser)
Public methodfact_computation 
Public methodfact_having_statements 
Public methodfact_normalization 
Public methodfact_ref 
Public methodfact_reference_or_computation 
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetATNWithBypassAlts The ATN with bypass alternatives is expensive to create so we create it lazily.
(Inherited from Parser)
Public methodGetDFAStringsFor debugging and other purposes.
(Inherited from Parser)
Public methodGetErrorHeaderWhat is the error header, normally line/character position information?
(Inherited from RecognizerIToken, ParserATNSimulator)
Public methodGetExpectedTokens Computes the set of input symbols which could follow the current parser state and context, as given by State and Context , respectively.
(Inherited from Parser)
Public methodGetExpectedTokensWithinCurrentRule
(Inherited from Parser)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetInvokingContext
(Inherited from Parser)
Public methodGetRuleIndex Get a rule's index (i.e., RULE_ruleName field) or -1 if not found.
(Inherited from Parser)
Public methodGetRuleInvocationStack Return List<String> of the rule names in your parser instance leading up to a call to the current rule.
(Inherited from Parser)
Public methodGetRuleInvocationStack(RuleContext)
(Inherited from Parser)
Public methodGetRuleInvocationStackAsString
(Inherited from Parser)
Public methodGetTokenErrorDisplay How should a token be displayed in an error message? The default is to display just the text, but during development you might want to have a lot of information spit out.
(Inherited from RecognizerIToken, ParserATNSimulator)
Obsolete
Public methodGetTokenType
(Inherited from RecognizerIToken, ParserATNSimulator)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodhaving_context 
Public methodhaving_id 
Public methodhaving_model 
Public methodhaving_negation 
Public methodhaving_oid 
Public methodhaving_priority 
Public methodhaving_scope 
Public methodhaving_statements 
Public methodhaving_status 
Public methodhaving_type 
Public methodhaving_uuid 
Public methodhdsi_logic 
Public methodinclude_definition 
Public methodInContext
(Inherited from Parser)
Public methodinline_rule_definition 
Public methodIsExpectedToken Checks whether or not symbol can follow the current state in the ATN. The behavior of this method is equivalent to the following, but is implemented such that the complete context-sensitive follow set does not need to be explicitly constructed.
             return getExpectedTokens().contains(symbol);
             

(Inherited from Parser)
Public methodlibrary 
Public methodlibrary_definition 
Public methodlibrary_definitions 
Public methodlogic_block 
Public methodlogic_definitions 
Public methodlogic_having_statements 
Public methodMatch Match current input symbol against ttype . If the symbol type matches, ReportMatch(Parser) and Consume are called to complete the match process.

If the symbol type does not match, RecoverInline(Parser) is called on the current error strategy to attempt recovery. If BuildParseTree is and the token index of the symbol returned by RecoverInline(Parser) is -1, the symbol is added to the parse tree by calling AddErrorNode(IToken) .


(Inherited from Parser)
Public methodMatchWildcardMatch current input symbol as a wildcard.
(Inherited from Parser)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodmetadata_author_statement 
Public methodmetadata_documentation_statement 
Public methodmetadata_statement 
Public methodmetadata_version_statement 
Public methodnone_logic 
Public methodNotifyErrorListeners(String)
(Inherited from Parser)
Public methodNotifyErrorListeners(IToken, String, RecognitionException)
(Inherited from Parser)
Public methodPrecpred
(Inherited from Parser)
Public methodpropose_action_statement 
Public methodprotocol_having_statements 
Public methodPushNewRecursionContext Like EnterRule(ParserRuleContext, Int32, Int32) but for recursive rules.
(Inherited from Parser)
Public methodquery_logic 
Public methodraise_action_statement 
Public methodRemoveErrorListener
(Inherited from RecognizerIToken, ParserATNSimulator)
Public methodRemoveErrorListeners
(Inherited from RecognizerIToken, ParserATNSimulator)
Public methodRemoveParseListener Remove listener from the list of parse listeners.

If listener is or has not been added as a parse listener, this method does nothing.


(Inherited from Parser)
Public methodRemoveParseListenersRemove all parse listeners.
(Inherited from Parser)
Public methodrepeat_action_statement 
Public methodResetreset the parser's state
(Inherited from Parser)
Public methodSempred
(Inherited from RecognizerIToken, ParserATNSimulator)
Public methodthen_action_statements 
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Protected methodTriggerEnterRuleEventNotify any parse listeners of an enter rule event.
(Inherited from Parser)
Protected methodTriggerExitRuleEventNotify any parse listeners of an exit rule event.
(Inherited from Parser)
Public methodUnrollRecursionContexts
(Inherited from Parser)
Public methodusing_model 
Public methodwhen_guard_condition 
Public methodwith_effective 
Top
Fields
 NameDescription
Public fieldStatic member_ATN 
Public fieldStatic memberAGG_SELECTOR 
Public fieldStatic memberAPPLY 
Public fieldStatic memberAS 
Public fieldStatic memberASSIGN 
Public fieldStatic memberAUTHOR 
Public fieldStatic memberBOOL_TYPE 
Public fieldStatic memberBOOL_VAL 
Public fieldStatic memberCLASS_TYPE 
Public fieldStatic memberCOMMENT 
Public fieldStatic memberCOMPUTEDBY 
Public fieldStatic memberCONST 
Public fieldStatic memberCONTEXT 
Public fieldStatic memberDATA 
Public fieldStatic memberDATE_TYPE 
Protected fieldStatic memberdecisionToDFA 
Public fieldStatic memberDefaultVocabulary 
Public fieldStatic memberDEFINE 
Public fieldStatic memberDOCUMENTATION 
Public fieldStatic memberEND 
Protected fieldErrorOutput
(Inherited from Parser)
Public fieldStatic memberFACT 
Public fieldStatic memberFLOAT 
Public fieldStatic memberFOR 
Public fieldStatic memberFORMAT 
Public fieldStatic memberFORMAT_REF 
Public fieldStatic memberFROM 
Public fieldStatic memberHAVING 
Public fieldStatic memberHDSI_EXPR 
Public fieldStatic memberHEX_4 
Public fieldStatic memberID 
Public fieldStatic memberIMPORT 
Public fieldStatic memberINCLUDE 
Public fieldStatic memberINTEGER 
Public fieldStatic memberINTEGER_TYPE 
Public fieldStatic memberISSUE_PRIORITY_VAL 
Public fieldStatic memberISSUE_TYPE 
Public fieldStatic memberITERATIONS 
Public fieldStatic memberLIBRARY 
Public fieldStatic memberLITERAL 
Public fieldStatic memberLOGIC 
Public fieldStatic memberLONG_TYPE 
Public fieldStatic memberMETADATA 
Public fieldStatic memberMODEL 
Public fieldStatic memberMULTILINE_STRING 
Public fieldStatic memberNAMED_ID 
Public fieldStatic memberNEGATED 
Public fieldStatic memberNEGATION 
Public fieldStatic memberNORMALIZE 
Public fieldStatic memberOID 
Public fieldStatic memberOID_DOTTED 
Protected fieldOutput
(Inherited from Parser)
Public fieldStatic memberOVERWRITE 
Public fieldStatic memberPRIMITIVE_TYPE 
Public fieldStatic memberPRIORITY 
Public fieldStatic memberPROPOSAL 
Public fieldStatic memberPROPOSE 
Public fieldStatic memberPROTOCOL 
Public fieldStatic memberRAISE 
Public fieldStatic memberREAL_TYPE 
Public fieldStatic memberREPEAT 
Public fieldStatic memberRULE 
Public fieldStatic memberRULE_all_logic 
Public fieldStatic memberRULE_any_logic 
Public fieldStatic memberRULE_apply_action_statement 
Public fieldStatic memberRULE_assign_action_statement 
Public fieldStatic memberRULE_csharp_logic 
Public fieldStatic memberRULE_data_block 
Public fieldStatic memberRULE_define_fact 
Public fieldStatic memberRULE_define_model 
Public fieldStatic memberRULE_define_protocol 
Public fieldStatic memberRULE_define_rule 
Public fieldStatic memberRULE_fact_computation 
Public fieldStatic memberRULE_fact_having_statements 
Public fieldStatic memberRULE_fact_normalization 
Public fieldStatic memberRULE_fact_ref 
Public fieldStatic memberRULE_fact_reference_or_computation 
Public fieldStatic memberRULE_having_context 
Public fieldStatic memberRULE_having_id 
Public fieldStatic memberRULE_having_model 
Public fieldStatic memberRULE_having_negation 
Public fieldStatic memberRULE_having_oid 
Public fieldStatic memberRULE_having_priority 
Public fieldStatic memberRULE_having_scope 
Public fieldStatic memberRULE_having_statements 
Public fieldStatic memberRULE_having_status 
Public fieldStatic memberRULE_having_type 
Public fieldStatic memberRULE_having_uuid 
Public fieldStatic memberRULE_hdsi_logic 
Public fieldStatic memberRULE_include_definition 
Public fieldStatic memberRULE_inline_rule_definition 
Public fieldStatic memberRULE_library 
Public fieldStatic memberRULE_library_definition 
Public fieldStatic memberRULE_library_definitions 
Public fieldStatic memberRULE_logic_block 
Public fieldStatic memberRULE_logic_definitions 
Public fieldStatic memberRULE_logic_having_statements 
Public fieldStatic memberRULE_metadata_author_statement 
Public fieldStatic memberRULE_metadata_documentation_statement 
Public fieldStatic memberRULE_metadata_statement 
Public fieldStatic memberRULE_metadata_version_statement 
Public fieldStatic memberRULE_none_logic 
Public fieldStatic memberRULE_propose_action_statement 
Public fieldStatic memberRULE_protocol_having_statements 
Public fieldStatic memberRULE_query_logic 
Public fieldStatic memberRULE_raise_action_statement 
Public fieldStatic memberRULE_repeat_action_statement 
Public fieldStatic memberRULE_then_action_statements 
Public fieldStatic memberRULE_using_model 
Public fieldStatic memberRULE_when_guard_condition 
Public fieldStatic memberRULE_with_effective 
Public fieldStatic memberruleNames 
Public fieldStatic memberSCOPE 
Protected fieldStatic membersharedContextCache 
Public fieldStatic memberSPACE 
Public fieldStatic memberSTATUS 
Public fieldStatic memberSTATUS_VAL 
Public fieldStatic memberSTRING 
Public fieldStatic memberSTRING_TYPE 
Public fieldStatic memberT__0 
Public fieldStatic memberT__1 
Public fieldStatic memberT__10 
Public fieldStatic memberT__11 
Public fieldStatic memberT__2 
Public fieldStatic memberT__3 
Public fieldStatic memberT__4 
Public fieldStatic memberT__5 
Public fieldStatic memberT__6 
Public fieldStatic memberT__7 
Public fieldStatic memberT__8 
Public fieldStatic memberT__9 
Public fieldStatic memberTHEN 
Public fieldStatic memberTO 
Public fieldStatic memberTRACKBY 
Public fieldStatic memberTYPE 
Public fieldStatic memberTYPE_REF 
Public fieldStatic memberUNTIL 
Public fieldStatic memberUUID 
Public fieldStatic memberUUIDV4 
Public fieldStatic memberVALID 
Public fieldStatic memberVERSION 
Public fieldStatic memberVERSION_VAL 
Public fieldStatic memberWHEN 
Public fieldStatic memberWITH 
Top
Extension Methods
 NameDescription
Public Extension MethodConvertTReturn The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods)
Public Extension MethodWithControl With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions)
Top
See Also