Nitro.OperatorBitwiseAnd Class Reference

Detailed Description

Represents the bitwise and (A&B) operator.

Inheritance diagram for Nitro.OperatorBitwiseAnd:
Nitro.Operator

Public Member Functions

 OperatorBitwiseAnd ()
 
- Public Member Functions inherited from Nitro.Operator
 Operator (string pattern, int priority)
 Creates a new operator with the given text and priority. More...
 
Operation ToOperation (CompiledFragment left, CompiledFragment right, CompiledMethod method)
 Converts the the given fragments into a compiled operation by first checking the fragments are ok for this operator. More...
 

Protected Member Functions

override Operation Compile (CompiledFragment left, CompiledFragment right, CompiledMethod method)
 Converts the given fragments into a compiled operation. Overidden by the actual operators. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Nitro.Operator
static void Add (Operator newOperator)
 Adds a useable operator to the global lookup. More...
 
static bool IsOperator (char character)
 Is the given character an operator or the start of one? More...
 
- Public Attributes inherited from Nitro.Operator
int Priority
 The priority of this operator over others. Essentially implements bodmas. More...
 
bool LeftOnly
 True if this operator only uses the content to its left. e.g. LEFT++. More...
 
bool RightOnly
 True if this operator only uses the content to its right. e.g. !RIGHT. More...
 
string Pattern
 The operator text pattern, for example '+' More...
 
bool LeftAndRight =true
 True if this operator uses the content on both the left and right of it. e.g. LEFT+RIGHT. More...
 
- Static Public Attributes inherited from Nitro.Operator
static Dictionary< char, int > Starts =new Dictionary<char,int>()
 The first character of an operator (as some have 2 or more; e.g. +=, &&) More...
 
static Dictionary< string,
Operator
FullOperators =new Dictionary<string,Operator>()
 A lookup for an operators text to the operator instance. e.g. '+' to the add operator. More...
 

Constructor & Destructor Documentation

Nitro.OperatorBitwiseAnd.OperatorBitwiseAnd ( )
inline

Member Function Documentation

override Operation Nitro.OperatorBitwiseAnd.Compile ( CompiledFragment  left,
CompiledFragment  right,
CompiledMethod  method 
)
inlineprotectedvirtual

Converts the given fragments into a compiled operation. Overidden by the actual operators.

Parameters
leftThe fragment to the left of the operator.
rightThe fragment to the right of the operation.
methodThe method the operation will be compiled into.

Reimplemented from Nitro.Operator.