C# Class Habanero.Base.CriteriaExpression

This class is a binary tree that consists of a left expression, a right expression and a join expression. The criteria Exrpession can be created by parsing a criteria string.
Datei anzeigen Open project: Chillisoft/habanero Class Usage Examples

Public Methods

Method Description
CriteriaExpression ( String expression ) : System

A constructor that takes a given expression string and parses it into a linked list of expressions

CriteriaExpression ( String expression, String operators ) : System

A constructor as before, but allows a particular set of operators to be specified, unlike the default set usually used.

IsLeaf ( ) : bool

Indicates whether this object contains the full expression

Private Methods

Method Description
IsPosInsideBrackets ( string quote, int pos ) : bool

Checks whether the given position in a string is between opening and closing brackets

parseExpression ( Habanero.Base.HabaneroStringBuilder expression ) : void

Parses the expression into a linked list of expression objects

Method Details

CriteriaExpression() public method

A constructor that takes a given expression string and parses it into a linked list of expressions
public CriteriaExpression ( String expression ) : System
expression String The expression string to parse
return System

CriteriaExpression() public method

A constructor as before, but allows a particular set of operators to be specified, unlike the default set usually used.
public CriteriaExpression ( String expression, String operators ) : System
expression String
operators String The set of operators
return System

IsLeaf() public method

Indicates whether this object contains the full expression
public IsLeaf ( ) : bool
return bool