CellexalVR  1.1.0
A virtual reality platform for the exploration and analysis of single-cell gene expression data
CellexalVR.AnalysisLogic.BooleanExpression.Token Class Reference

Helper class that represents a token when parsin a filter. More...

Public Types

enum  Type {
  WHITESPACE, AND, OR, XOR,
  NOT, L_PAR, R_PAR, VALUE_NAME,
  VALUE_NUM, VALUE_PERCENT, TYPE_GENE, TYPE_FACS,
  TYPE_ATTR, TYPE_ALIAS, OP_EQ, OP_NEQ,
  OP_GT, OP_GTEQ, OP_LT, OP_LTEQ,
  ATTR_YES, ATTR_NO, ALIAS
}
 

Public Member Functions

 Token (Type type, string text, int stringIndex)
 
bool IsOperator ()
 Checks if this token is an operator. The operators are ==, !=, <, <=, > and >=. More...
 
bool IsType ()
 Checks if this token is a type decleration. Types are alias, attribute, facs or gene. More...
 
override bool Equals (object obj)
 Checks if two tokens are equal. Tokens are equal if they are the same type, represents the same text at the same stringIndex. More...
 
override int GetHashCode ()
 
override string ToString ()
 

Static Public Member Functions

static bool operator== (Token t, Type type)
 
static bool operator!= (Token t, Type type)
 

Public Attributes

Type type
 
string text
 
int stringIndex
 

Detailed Description

Helper class that represents a token when parsin a filter.

Member Function Documentation

◆ Equals()

override bool CellexalVR.AnalysisLogic.BooleanExpression.Token.Equals ( object  obj)

Checks if two tokens are equal. Tokens are equal if they are the same type, represents the same text at the same stringIndex.

Parameters
objThe object to check for equality.

◆ IsOperator()

bool CellexalVR.AnalysisLogic.BooleanExpression.Token.IsOperator ( )

Checks if this token is an operator. The operators are ==, !=, <, <=, > and >=.

◆ IsType()

bool CellexalVR.AnalysisLogic.BooleanExpression.Token.IsType ( )

Checks if this token is a type decleration. Types are alias, attribute, facs or gene.


The documentation for this class was generated from the following file: