Tokenizer<TSymbol, TSymbolType> Class
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Inheritance Hierarchy
System.Object
System.Web.Razor.StateMachine<TSymbol>
System.Web.Razor.Tokenizer.Tokenizer<TSymbol, TSymbolType>
System.Web.Razor.Tokenizer.CSharpTokenizer
System.Web.Razor.Tokenizer.HtmlTokenizer
System.Web.Razor.Tokenizer.VBTokenizer
Namespace: System.Web.Razor.Tokenizer
Assembly: System.Web.Razor (in System.Web.Razor.dll)
Syntax
'Declaration
Public MustInherit Class Tokenizer(Of TSymbol As SymbolBase(Of TSymbolType), TSymbolType) _
Inherits StateMachine(Of TSymbol) _
Implements ITokenizer
'Usage
Dim instance As Tokenizer(Of TSymbol, TSymbolType)
public abstract class Tokenizer<TSymbol, TSymbolType> : StateMachine<TSymbol>,
ITokenizer
where TSymbol : SymbolBase<TSymbolType>
generic<typename TSymbol, typename TSymbolType>
where TSymbol : SymbolBase<TSymbolType>
public ref class Tokenizer abstract : public StateMachine<TSymbol>,
ITokenizer
[<AbstractClassAttribute>]
type Tokenizer<'TSymbol, 'TSymbolType when 'TSymbol : SymbolBase<'TSymbolType>> =
class
inherit StateMachine<'TSymbol>
interface ITokenizer
end
JScript does not support generic types and methods.
Type Parameters
- TSymbol
The type for the language symbol.
- TSymbolType
The enumeration type for the language symbol.
The Tokenizer<TSymbol, TSymbolType> type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Tokenizer<TSymbol, TSymbolType> | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Initializes a new instance of the Tokenizer<TSymbol, TSymbolType> class. |
Top
Properties
Name | Description | |
---|---|---|
Buffer | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the buffer for the tokenizer. | |
CurrentCharacter | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the current character in the tokenizer. | |
CurrentErrors | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets a list of the current razor errors. | |
CurrentLocation | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the current source location. | |
CurrentStart | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the current start of the source location. | |
CurrentState | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the current state of the machine. (Inherited from StateMachine<TReturn>.) | |
EndOfFile | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets a value whether the tokenizer current location is at the end of the file. | |
HaveContent | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets a value whether the tokenizer have content. | |
RazorCommentStarType | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the star type for the razor comment. | |
RazorCommentTransitionType | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the transition type for the razor comment. | |
RazorCommentType | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the type of razor comment. | |
Source | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the source of the text document. | |
StartState | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the starting state of the machine. (Inherited from StateMachine<TReturn>.) |
Top
Methods
Name | Description | |
---|---|---|
AfterRazorCommentTransition | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Returns a result after the razor comment transition. | |
At | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the lookahead buffer contains the expected string. | |
CharOrWhiteSpace | Returns a function delegate, that accepts a character parameter and returns a value that indicates whether the character parameter is equal to specified character or white space. | |
CreateSymbol | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Creates a language symbol type for the tokenizer with the specified content. | |
EndSymbol(TSymbolType) | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Returns the language end symbol type used by the tokenizer. | |
EndSymbol(SourceLocation, TSymbolType) | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Returns the language end symbol type used by the tokenizer. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
MoveNext | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Reads to the next character from the code reader. | |
NextSymbol | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Shows the next symbol to be used. | |
Peek | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Reads the next symbol in the code. | |
RazorCommentBody | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Parses the Razor comment body. | |
Reset | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Sets the tokenizer status to its initial state. | |
ResumeSymbol | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Resumes using the previous language symbol type. | |
Single | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Uses a single type of symbol. | |
StartSymbol | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Returns the start symbol used in this class. | |
Stay() | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Stays into the machine during the transition. (Inherited from StateMachine<TReturn>.) | |
Stay(TReturn) | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Stays into the machine during the transition with the specified output. (Inherited from StateMachine<TReturn>.) | |
Stop | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Disables the machine upon transition. (Inherited from StateMachine<TReturn>.) | |
TakeAll | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Takes the string if found in the lookahead buffer into the tokenizer buffer. | |
TakeCurrent | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts the current character into the buffer. | |
TakeString | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts the given input string into the buffer. | |
TakeUntil | Parses the source document until the condition specified by predicate is met or end file is reached. | |
ToString | (Inherited from Object.) | |
Transition(StateMachine<TReturn>.State) | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates the new transition of the state. (Inherited from StateMachine<TReturn>.) | |
Transition(TReturn, StateMachine<TReturn>.State) | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates the new transition of the state with the specified output. (Inherited from StateMachine<TReturn>.) | |
Turn | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Describes the turning process of the state. (Inherited from StateMachine<TReturn>.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
ITokenizer.NextSymbol | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Returns the next language symbol type. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.