C# Class 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.
Inheritance: AstNode
Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Protected Properties

Свойство Type Description
left AstNode
operatorPosition int
right AstNode

Méthodes publiques

Méthode Description
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.

Method Details

GetLeft() public méthode

Returns the left-hand side of the expression
public GetLeft ( ) : AstNode
Résultat AstNode

GetOperator() public méthode

Returns operator token – alias for Rhino.Node.GetType()
public GetOperator ( ) : int
Résultat int

GetOperatorPosition() public méthode

Returns relative offset of operator token
public GetOperatorPosition ( ) : int
Résultat int

GetRight() public méthode

Returns the right-hand side of the expression
public GetRight ( ) : AstNode
Résultat AstNode

HasSideEffects() public méthode

public HasSideEffects ( ) : bool
Résultat bool

InfixExpression() public méthode

public InfixExpression ( ) : System
Résultat System

InfixExpression() public méthode

Constructs a new InfixExpression . Updates bounds to include left and right nodes.
public InfixExpression ( AstNode left, AstNode right ) : System
left AstNode
right AstNode
Résultat System

InfixExpression() public méthode

public InfixExpression ( int pos ) : System
pos int
Résultat System

InfixExpression() public méthode

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
Résultat System

InfixExpression() public méthode

public InfixExpression ( int pos, int len ) : System
pos int
len int
Résultat System

InfixExpression() public méthode

public InfixExpression ( int pos, int len, AstNode left, AstNode right ) : System
pos int
len int
left AstNode
right AstNode
Résultat System

SetLeft() public méthode

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
Résultat void

SetLeftAndRight() public méthode

public SetLeftAndRight ( AstNode left, AstNode right ) : void
left AstNode
right AstNode
Résultat void

SetOperator() public méthode

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
Résultat void

SetOperatorPosition() public méthode

Sets operator token's relative offset
public SetOperatorPosition ( int operatorPosition ) : void
operatorPosition int offset in parent of operator token
Résultat void

SetRight() public méthode

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
Résultat void

ToSource() public méthode

public ToSource ( int depth ) : string
depth int
Résultat string

Visit() public méthode

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
Résultat void

Property Details

left protected_oe property

protected AstNode left
Résultat AstNode

operatorPosition protected_oe property

protected int operatorPosition
Résultat int

right protected_oe property

protected AstNode right
Résultat AstNode