C# 클래스 YAMP.Operator

The abstract base class for any operator (unary, binary, ...).
상속: Block, IRegisterElement
파일 보기 프로젝트 열기: FlorianRappl/YAMP 1 사용 예제들

공개 메소드들

메소드 설명
Create ( ) : Operator

Creates a new instance of the current operator.

Create ( ParseEngine engine ) : Operator

Creates a new instance of the current operator.

Evaluate ( Expression expressions, Value>.IDictionary symbols ) : Value

Begins the evaluation of given expressions.

Operator ( String op ) : System

Creates a new operator given the string for the operator.

Operator ( String op, Int32 level ) : System

Creates a new operator given the string and level for the operator.

RegisterElement ( IElementMapping elementMapping ) : void

Registers the operator at its factory.

ToCode ( ) : String

The code representation of the operator, which is usually just the operator itself.

ToDebug ( int padLeft, int tabsize ) : String

Returns a string to allow visualization of a Expression tree

ToString ( ) : String

Returns the string representation of the operator.

메소드 상세

Create() 공개 추상적인 메소드

Creates a new instance of the current operator.
public abstract Create ( ) : Operator
리턴 Operator

Create() 공개 메소드

Creates a new instance of the current operator.
public Create ( ParseEngine engine ) : Operator
engine ParseEngine The engine that is used for parsing the query.
리턴 Operator

Evaluate() 공개 추상적인 메소드

Begins the evaluation of given expressions.
public abstract Evaluate ( Expression expressions, Value>.IDictionary symbols ) : Value
expressions Expression The expressions to evaluate.
symbols Value>.IDictionary External symbols to consider.
리턴 Value

Operator() 공개 메소드

Creates a new operator given the string for the operator.
public Operator ( String op ) : System
op String The operator string like +.
리턴 System

Operator() 공개 메소드

Creates a new operator given the string and level for the operator.
public Operator ( String op, Int32 level ) : System
op String The operator string like +.
level System.Int32 The operator level like 100.
리턴 System

RegisterElement() 공개 메소드

Registers the operator at its factory.
public RegisterElement ( IElementMapping elementMapping ) : void
elementMapping IElementMapping
리턴 void

ToCode() 공개 메소드

The code representation of the operator, which is usually just the operator itself.
public ToCode ( ) : String
리턴 String

ToDebug() 공개 메소드

Returns a string to allow visualization of a Expression tree
public ToDebug ( int padLeft, int tabsize ) : String
padLeft int
tabsize int
리턴 String

ToString() 공개 메소드

Returns the string representation of the operator.
public ToString ( ) : String
리턴 String