Parser Class

 

Defines the methods that control the parser behavior.

Namespace:   ManagedBatchParser
Assembly:  Microsoft.SqlServer.BatchParser (in Microsoft.SqlServer.BatchParser.dll)

System.Object
  ManagedBatchParser.Parser

public class Parser : IDisposable

NameDescription
System_CAPS_pubmethodParser()

Initializes a new instance of the Parser class.

NameDescription
System_CAPS_pubmethodCleanup()

Cleans up the internal state, and prepares for a new parse.

System_CAPS_pubmethodDisableVariableSubstitution()

Disables variable substitution in the lexer.

System_CAPS_pubmethodDispose()

Releases all resources used by the current instance of the Parser.

System_CAPS_protmethodDispose(Boolean)

Releases all resources used by the current instance of the Parser.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetLastCommandLineNumber()

Returns the line number of the last encountered command.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodParse()

Starts the parsing.

System_CAPS_pubmethodParserDispose()

Cleans up the parser state.

System_CAPS_pubmethodSetBatchDelimiter(String)

Sets the new batch delimiter. By default, the batch delimiter is GO.

System_CAPS_pubmethodSetBatchSource(IBatchSource)

Sets the batch source interface, which is used to feed text into the parser.

System_CAPS_pubmethodSetCommandExecuter(ICommandExecuter)

Sets the command executer interface, which processes sqlcmd commands and the batch delimiter.

System_CAPS_pubmethodSetParseMode(ParseMode)

Sets the parser mode.

System_CAPS_pubmethodSetRecognizeOnlyVariables(Boolean)

Sets the parser mode to recognize only variables.

System_CAPS_pubmethodSetVariableResolver(IVariableResolver)

Sets the variable resolver interface.

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: