C# Class BF2Statistics.MedalData.Token

Inheritance: ISourcePart
Show file Open project: BF2Statistics/ControlCenter

Public Methods

Method Description
AsTokens ( ) : BF2Statistics.MedalData.Token[]
Create ( TokenType kind, Match match, int index ) : Token

Creates a new Token

Create ( TokenType kind, string value, int position ) : Token

Creates a new Token

TypeToString ( TokenType Kind ) : string

Method Details

AsTokens() public method

public AsTokens ( ) : BF2Statistics.MedalData.Token[]
return BF2Statistics.MedalData.Token[]

Create() public static method

Creates a new Token
public static Create ( TokenType kind, Match match, int index ) : Token
kind TokenType The kind (name) of the token
match System.Text.RegularExpressions.Match The Match the token is to be generated from
index int The offset from the beginning of the file the index of the match is relative to
return Token

Create() public static method

Creates a new Token
public static Create ( TokenType kind, string value, int position ) : Token
kind TokenType The kind (name) of the token
value string The value to assign to the token
position int The absolute position in the source file the value is located at
return Token

TypeToString() public static method

public static TypeToString ( TokenType Kind ) : string
Kind TokenType
return string