C# Class NGettext.Plural.Ast.TokenDefinition

A token definition that describes behavior of token with specified type.
Mostra file Open project: neris/NGettext Class Usage Examples

Protected Properties

Property Type Description
LeftDenotationGetter LeftDenotationGetterDelegate
NullDenotationGetter NullDenotationGetterDelegate

Public Methods

Method Description
GetLeftDenotation ( Token self, Token left ) : Token

Gets a left denotation token for given token using the left denotation getter.

GetNullDenotation ( Token self ) : Token

Gets a null denotation token for given token using the null denotation getter.

SetLeftDenotationGetter ( LeftDenotationGetterDelegate leftDenotationGetter ) : TokenDefinition

Sets a left denotation getter.

SetNullDenotationGetter ( NullDenotationGetterDelegate nullDenotationGetter ) : TokenDefinition

Sets a null denotation getter.

TokenDefinition ( TokenType tokenType, int leftBindingPower ) : System

Initializes a new instance of the TokenDefinition class for given token type with given left binding power.

Method Details

GetLeftDenotation() public method

Gets a left denotation token for given token using the left denotation getter.
public GetLeftDenotation ( Token self, Token left ) : Token
self Token
left Token
return Token

GetNullDenotation() public method

Gets a null denotation token for given token using the null denotation getter.
public GetNullDenotation ( Token self ) : Token
self Token
return Token

SetLeftDenotationGetter() public method

Sets a left denotation getter.
public SetLeftDenotationGetter ( LeftDenotationGetterDelegate leftDenotationGetter ) : TokenDefinition
leftDenotationGetter LeftDenotationGetterDelegate
return TokenDefinition

SetNullDenotationGetter() public method

Sets a null denotation getter.
public SetNullDenotationGetter ( NullDenotationGetterDelegate nullDenotationGetter ) : TokenDefinition
nullDenotationGetter NullDenotationGetterDelegate
return TokenDefinition

TokenDefinition() public method

Initializes a new instance of the TokenDefinition class for given token type with given left binding power.
public TokenDefinition ( TokenType tokenType, int leftBindingPower ) : System
tokenType TokenType
leftBindingPower int
return System

Property Details

LeftDenotationGetter protected_oe property

protected LeftDenotationGetterDelegate LeftDenotationGetter
return LeftDenotationGetterDelegate

NullDenotationGetter protected_oe property

protected NullDenotationGetterDelegate NullDenotationGetter
return NullDenotationGetterDelegate