Show / Hide Table of Contents

Struct Token

Represents a character in a formula

Inherited Members
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: OfficeOpenXml.FormulaParsing.LexicalAnalysis
Assembly: EPPlus.dll
Syntax
public struct Token

Constructors

Token(string, TokenType)

Constructor

Declaration
public Token(string token, TokenType tokenType)
Parameters
Type Name Description
string token

The formula character

TokenType tokenType

The TokenType

Token(string, TokenType, bool)

Constructor

Declaration
public Token(string token, TokenType tokenType, bool isNegated)
Parameters
Type Name Description
string token

The formula character

TokenType tokenType

The TokenType

bool isNegated

Fields

Value

The formula character

Declaration
public string Value
Field Value
Type Description
string

Properties

IsNegated

Indicates whether a numeric value should be negated when compiled

Declaration
public bool IsNegated { get; }
Property Value
Type Description
bool

TokenTypeIsAddress

Returns true if the token contains a address token that should be updated in insert/delete operations.

Declaration
public bool TokenTypeIsAddress { get; }
Property Value
Type Description
bool

TokenTypeIsAddressToken

Returns true if the token is a token building an address.

Declaration
public bool TokenTypeIsAddressToken { get; }
Property Value
Type Description
bool

Methods

AreEqualTo(Token)

Are equal to

Declaration
public bool AreEqualTo(Token otherToken)
Parameters
Type Name Description
Token otherToken
Returns
Type Description
bool

Equals(object)

Overrides object.Equals with no behavioural change

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
ValueType.Equals(object)

GetHashCode()

Overrides object.GetHashCode with no behavioural change

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
ValueType.GetHashCode()

ToString()

Overrides object.ToString()

Declaration
public override string ToString()
Returns
Type Description
string

TokenType, followed by value

Overrides
ValueType.ToString()

TokenTypeIsSet(TokenType)

Return if the supplied tokenType is set on this token.

Declaration
public bool TokenTypeIsSet(TokenType tokenType)
Parameters
Type Name Description
TokenType tokenType

The TokenType to check

Returns
Type Description
bool

True if the token is set, otherwirse false

Operators

operator ==(Token, Token)

Operator ==

Declaration
public static bool operator ==(Token t1, Token t2)
Parameters
Type Name Description
Token t1
Token t2
Returns
Type Description
bool

operator !=(Token, Token)

Operator !=

Declaration
public static bool operator !=(Token t1, Token t2)
Parameters
Type Name Description
Token t1
Token t2
Returns
Type Description
bool
In this article
Back to top Generated by DocFX