Click or drag to resize

CdssLibraryBaseVisitorResult Class

This class provides an empty implementation of ICdssLibraryVisitorResult, which can be extended to create a visitor which only needs to handle a subset of the available methods.
Inheritance Hierarchy
SystemObject
  AbstractParseTreeVisitorResult
    SanteDB.Cdss.Xml.AntlrCdssLibraryBaseVisitorResult

Namespace: SanteDB.Cdss.Xml.Antlr
Assembly: SanteDB.Cdss.Xml (in SanteDB.Cdss.Xml.dll) Version: 3.0.2081-alpha+424e72aeb77d4a8ba5755272e5fc2a3206eaa2f1
Syntax
public class CdssLibraryBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, 
	ICdssLibraryVisitor<Result>, IParseTreeVisitor<Result>

Type Parameters

Result
The return type of the visit operation.

The CdssLibraryBaseVisitorResult type exposes the following members.

Constructors
 NameDescription
Public methodCdssLibraryBaseVisitorResultInitializes a new instance of the CdssLibraryBaseVisitorResult class
Top
Properties
 NameDescription
Protected propertyDefaultResultGets the default value returned by visitor methods.
(Inherited from AbstractParseTreeVisitorResult)
Top
Methods
 NameDescription
Protected methodAggregateResultAggregates the results of visiting multiple children of a node.
(Inherited from AbstractParseTreeVisitorResult)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
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 methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodShouldVisitNextChild This method is called after visiting each child in VisitChildren(IRuleNode) . This method is first called before the first child is visited; at that point currentResult will be the initial value (in the default implementation, the initial value is returned by a call to DefaultResult . This method is not called after the last child is visited.

The default implementation always returns , indicating that visitChildren should only return after all children are visited. One reason to override this method is to provide a "short circuit" evaluation option for situations where the result of visiting a single child has the potential to determine the result of the visit operation as a whole.


(Inherited from AbstractParseTreeVisitorResult)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodVisit

The default implementation calls Accept``1(IParseTreeVisitorUMP) on the specified tree.


(Inherited from AbstractParseTreeVisitorResult)
Public methodVisitAll_logic Visit a parse tree produced by all_logic.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitAny_logic Visit a parse tree produced by any_logic.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitApply_action_statement Visit a parse tree produced by apply_action_statement.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitAssign_action_statement Visit a parse tree produced by assign_action_statement.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitChildren

The default implementation initializes the aggregate result to defaultResult() . Before visiting each child, it calls shouldVisitNextChild ; if the result is no more children are visited and the current aggregate result is returned. After visiting a child, the aggregate result is updated by calling aggregateResult with the previous aggregate result and the result of visiting the child.

The default implementation is not safe for use in visitors that modify the tree structure. Visitors that modify the tree should override this method to behave properly in respect to the specific algorithm in use.


(Inherited from AbstractParseTreeVisitorResult)
Public methodVisitCsharp_logic Visit a parse tree produced by csharp_logic.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitData_block Visit a parse tree produced by data_block.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitDefine_fact Visit a parse tree produced by define_fact.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitDefine_model Visit a parse tree produced by define_model.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitDefine_protocol Visit a parse tree produced by define_protocol.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitDefine_rule Visit a parse tree produced by define_rule.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitErrorNode

The default implementation returns the result of defaultResult .


(Inherited from AbstractParseTreeVisitorResult)
Public methodVisitFact_computation Visit a parse tree produced by fact_computation.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitFact_having_statements Visit a parse tree produced by fact_having_statements.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitFact_normalization Visit a parse tree produced by fact_normalization.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitFact_ref Visit a parse tree produced by fact_ref.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitFact_reference_or_computation Visit a parse tree produced by fact_reference_or_computation.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitHaving_context Visit a parse tree produced by having_context.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitHaving_id Visit a parse tree produced by having_id.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitHaving_model Visit a parse tree produced by having_model.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitHaving_negation Visit a parse tree produced by having_negation.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitHaving_oid Visit a parse tree produced by having_oid.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitHaving_priority Visit a parse tree produced by having_priority.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitHaving_scope Visit a parse tree produced by having_scope.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitHaving_statements Visit a parse tree produced by having_statements.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitHaving_status Visit a parse tree produced by having_status.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitHaving_type Visit a parse tree produced by having_type.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitHaving_uuid Visit a parse tree produced by having_uuid.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitHdsi_logic Visit a parse tree produced by hdsi_logic.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitInclude_definition Visit a parse tree produced by include_definition.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitInline_rule_definition Visit a parse tree produced by inline_rule_definition.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitLibrary Visit a parse tree produced by library.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitLibrary_definition Visit a parse tree produced by library_definition.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitLibrary_definitions Visit a parse tree produced by library_definitions.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitLogic_block Visit a parse tree produced by logic_block.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitLogic_definitions Visit a parse tree produced by logic_definitions.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitLogic_having_statements Visit a parse tree produced by logic_having_statements.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitMetadata_author_statement Visit a parse tree produced by metadata_author_statement.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitMetadata_documentation_statement Visit a parse tree produced by metadata_documentation_statement.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitMetadata_statement Visit a parse tree produced by metadata_statement.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitMetadata_version_statement Visit a parse tree produced by metadata_version_statement.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitNone_logic Visit a parse tree produced by none_logic.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitPropose_action_statement Visit a parse tree produced by propose_action_statement.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitProtocol_having_statements Visit a parse tree produced by protocol_having_statements.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitQuery_logic Visit a parse tree produced by query_logic.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitRaise_action_statement Visit a parse tree produced by raise_action_statement.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitRepeat_action_statement Visit a parse tree produced by repeat_action_statement.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitTerminal

The default implementation returns the result of defaultResult .


(Inherited from AbstractParseTreeVisitorResult)
Public methodVisitThen_action_statements Visit a parse tree produced by then_action_statements.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitUsing_model Visit a parse tree produced by using_model.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitWhen_guard_condition Visit a parse tree produced by when_guard_condition.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

Public methodVisitWith_effective Visit a parse tree produced by with_effective.

The default implementation returns the result of calling VisitChildren(IRuleNode) on context.

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