C# Class YAMP.ContainerExpression

Represents a container for expressions and corresponding operators.
Inheritance: Expression
Exibir arquivo Open project: FlorianRappl/YAMP Class Usage Examples

Public Methods

Method Description
ContainerExpression ( ) : System

Creates a new expression container.

ContainerExpression ( ContainerExpression container ) : System

Creates a new expression container.

ContainerExpression ( Expression expression ) : System

Creates a new expression container.

ContainerExpression ( Expression leftExpression, Expression rightExpression, Operator @operator ) : System

Creates a new expression container.

ContainerExpression ( Expression expression, Operator @operator ) : System

Creates a new expression container.

Interpret ( Value>.IDictionary symbols ) : Value

Interprets the container expression.

RegisterElement ( IElementMapping elementMapping ) : void

Registers the element in the beginning.

Scan ( ParseEngine engine ) : Expression

Scans the input of the current parse engine.

ToCode ( ) : string

Transforms the contained expressions and operators into a valid part of a YAMP query.

ToDebug ( int padLeft, int tabsize ) : String

Returns a string to allow visualization of a Expression tree

ToString ( ) : String

Transforms the content into a string.

Method Details

ContainerExpression() public method

Creates a new expression container.
public ContainerExpression ( ) : System
return System

ContainerExpression() public method

Creates a new expression container.
public ContainerExpression ( ContainerExpression container ) : System
container ContainerExpression The container which contains expressions and an operator.
return System

ContainerExpression() public method

Creates a new expression container.
public ContainerExpression ( Expression expression ) : System
expression Expression The (1) expression to contain.
return System

ContainerExpression() public method

Creates a new expression container.
public ContainerExpression ( Expression leftExpression, Expression rightExpression, Operator @operator ) : System
leftExpression Expression The left expression to evaluate.
rightExpression Expression The right expression to evaluate.
@operator Operator
return System

ContainerExpression() public method

Creates a new expression container.
public ContainerExpression ( Expression expression, Operator @operator ) : System
expression Expression The (1) expression to contain.
@operator Operator
return System

Interpret() public method

Interprets the container expression.
public Interpret ( Value>.IDictionary symbols ) : Value
symbols Value>.IDictionary External symbols to be used.
return Value

RegisterElement() public method

Registers the element in the beginning.
public RegisterElement ( IElementMapping elementMapping ) : void
elementMapping IElementMapping
return void

Scan() public method

Scans the input of the current parse engine.
public Scan ( ParseEngine engine ) : Expression
engine ParseEngine The engine to use.
return Expression

ToCode() public method

Transforms the contained expressions and operators into a valid part of a YAMP query.
public ToCode ( ) : string
return string

ToDebug() public method

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

ToString() public method

Transforms the content into a string.
public ToString ( ) : String
return String