C# Класс Rhino.Ast.InfixExpression

AST node representing an infix (binary operator) expression.
AST node representing an infix (binary operator) expression. The operator is the node's Rhino.Token type.
Наследование: AstNode
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
left AstNode
operatorPosition int
right AstNode

Открытые методы

Метод Описание
GetLeft ( ) : AstNode

Returns the left-hand side of the expression

GetOperator ( ) : int

Returns operator token – alias for Rhino.Node.GetType()

GetOperatorPosition ( ) : int

Returns relative offset of operator token

GetRight ( ) : AstNode

Returns the right-hand side of the expression

HasSideEffects ( ) : bool
InfixExpression ( ) : System
InfixExpression ( AstNode left, AstNode right ) : System

Constructs a new InfixExpression . Updates bounds to include left and right nodes.

InfixExpression ( int pos ) : System
InfixExpression ( int @operator, AstNode left, AstNode right, int operatorPos ) : System

Constructs a new InfixExpression .

InfixExpression ( int pos, int len ) : System
InfixExpression ( int pos, int len, AstNode left, AstNode right ) : System
SetLeft ( AstNode left ) : void

Sets the left-hand side of the expression, and sets its parent to this node.

Sets the left-hand side of the expression, and sets its parent to this node.

SetLeftAndRight ( AstNode left, AstNode right ) : void
SetOperator ( int @operator ) : void

Sets operator token – like Rhino.Node.SetType(int) , but throws an exception if the operator is invalid.

SetOperatorPosition ( int operatorPosition ) : void

Sets operator token's relative offset

SetRight ( AstNode right ) : void

Sets the right-hand side of the expression, and sets its parent to this node.

Sets the right-hand side of the expression, and sets its parent to this node.

ToSource ( int depth ) : string
Visit ( NodeVisitor v ) : void

Visits this node, the left operand, and the right operand.

Visits this node, the left operand, and the right operand.

Описание методов

GetLeft() публичный Метод

Returns the left-hand side of the expression
public GetLeft ( ) : AstNode
Результат AstNode

GetOperator() публичный Метод

Returns operator token – alias for Rhino.Node.GetType()
public GetOperator ( ) : int
Результат int

GetOperatorPosition() публичный Метод

Returns relative offset of operator token
public GetOperatorPosition ( ) : int
Результат int

GetRight() публичный Метод

Returns the right-hand side of the expression
public GetRight ( ) : AstNode
Результат AstNode

HasSideEffects() публичный Метод

public HasSideEffects ( ) : bool
Результат bool

InfixExpression() публичный Метод

public InfixExpression ( ) : System
Результат System

InfixExpression() публичный Метод

Constructs a new InfixExpression . Updates bounds to include left and right nodes.
public InfixExpression ( AstNode left, AstNode right ) : System
left AstNode
right AstNode
Результат System

InfixExpression() публичный Метод

public InfixExpression ( int pos ) : System
pos int
Результат System

InfixExpression() публичный Метод

Constructs a new InfixExpression .
public InfixExpression ( int @operator, AstNode left, AstNode right, int operatorPos ) : System
@operator int
left AstNode
right AstNode
operatorPos int the absolute position of the operator
Результат System

InfixExpression() публичный Метод

public InfixExpression ( int pos, int len ) : System
pos int
len int
Результат System

InfixExpression() публичный Метод

public InfixExpression ( int pos, int len, AstNode left, AstNode right ) : System
pos int
len int
left AstNode
right AstNode
Результат System

SetLeft() публичный Метод

Sets the left-hand side of the expression, and sets its parent to this node.
Sets the left-hand side of the expression, and sets its parent to this node.
/// } if left is /// null ///
public SetLeft ( AstNode left ) : void
left AstNode the left-hand side of the expression
Результат void

SetLeftAndRight() публичный Метод

public SetLeftAndRight ( AstNode left, AstNode right ) : void
left AstNode
right AstNode
Результат void

SetOperator() публичный Метод

Sets operator token – like Rhino.Node.SetType(int) , but throws an exception if the operator is invalid.
/// if operator is not a valid token /// code ///
public SetOperator ( int @operator ) : void
@operator int
Результат void

SetOperatorPosition() публичный Метод

Sets operator token's relative offset
public SetOperatorPosition ( int operatorPosition ) : void
operatorPosition int offset in parent of operator token
Результат void

SetRight() публичный Метод

Sets the right-hand side of the expression, and sets its parent to this node.
Sets the right-hand side of the expression, and sets its parent to this node.
/// } if right is /// null ///
public SetRight ( AstNode right ) : void
right AstNode
Результат void

ToSource() публичный Метод

public ToSource ( int depth ) : string
depth int
Результат string

Visit() публичный Метод

Visits this node, the left operand, and the right operand.
Visits this node, the left operand, and the right operand.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
Результат void

Описание свойств

left защищенное свойство

protected AstNode left
Результат AstNode

operatorPosition защищенное свойство

protected int operatorPosition
Результат int

right защищенное свойство

protected AstNode right
Результат AstNode