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
파일 보기 프로젝트 열기: hazzik/Rhino.Net 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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