C# Class Rhino.Ast.ConditionalExpression

AST node representing the ternary operator.
AST node representing the ternary operator. Node type is Rhino.Token.HOOK .
ConditionalExpression : LogicalORExpression LogicalORExpression ? AssignmentExpression : AssignmentExpression
ConditionalExpressionNoIn : LogicalORExpressionNoIn LogicalORExpressionNoIn ? AssignmentExpression : AssignmentExpressionNoIn
Inheritance: AstNode
Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Méthodes publiques

Méthode Description
ConditionalExpression ( ) : System.Text
ConditionalExpression ( int pos ) : System.Text
ConditionalExpression ( int pos, int len ) : System.Text
GetColonPosition ( ) : int

Returns position of : token

GetFalseExpression ( ) : AstNode

Returns expression to evaluate if test is false

GetQuestionMarkPosition ( ) : int

Returns position of ? token

GetTestExpression ( ) : AstNode

Returns test expression

GetTrueExpression ( ) : AstNode

Returns expression to evaluate if test is true

HasSideEffects ( ) : bool
SetColonPosition ( int colonPosition ) : void

Sets position of : token

SetFalseExpression ( AstNode falseExpression ) : void

Sets expression to evaluate if test is false, and sets its parent to this node.

Sets expression to evaluate if test is false, and sets its parent to this node.

SetQuestionMarkPosition ( int questionMarkPosition ) : void

Sets position of ? token

SetTestExpression ( AstNode testExpression ) : void

Sets test expression, and sets its parent.

Sets test expression, and sets its parent.

SetTrueExpression ( AstNode trueExpression ) : void

Sets expression to evaluate if test is true, and sets its parent to this node.

Sets expression to evaluate if test is true, and sets its parent to this node.

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

Visits this node, then the test-expression, the true-expression, and the false-expression.

Visits this node, then the test-expression, the true-expression, and the false-expression.

Method Details

ConditionalExpression() public méthode

public ConditionalExpression ( ) : System.Text
Résultat System.Text

ConditionalExpression() public méthode

public ConditionalExpression ( int pos ) : System.Text
pos int
Résultat System.Text

ConditionalExpression() public méthode

public ConditionalExpression ( int pos, int len ) : System.Text
pos int
len int
Résultat System.Text

GetColonPosition() public méthode

Returns position of : token
public GetColonPosition ( ) : int
Résultat int

GetFalseExpression() public méthode

Returns expression to evaluate if test is false
public GetFalseExpression ( ) : AstNode
Résultat AstNode

GetQuestionMarkPosition() public méthode

Returns position of ? token
public GetQuestionMarkPosition ( ) : int
Résultat int

GetTestExpression() public méthode

Returns test expression
public GetTestExpression ( ) : AstNode
Résultat AstNode

GetTrueExpression() public méthode

Returns expression to evaluate if test is true
public GetTrueExpression ( ) : AstNode
Résultat AstNode

HasSideEffects() public méthode

public HasSideEffects ( ) : bool
Résultat bool

SetColonPosition() public méthode

Sets position of : token
public SetColonPosition ( int colonPosition ) : void
colonPosition int position of : token
Résultat void

SetFalseExpression() public méthode

Sets expression to evaluate if test is false, and sets its parent to this node.
Sets expression to evaluate if test is false, and sets its parent to this node.
/// if /// falseExpression /// is /// null ///
public SetFalseExpression ( AstNode falseExpression ) : void
falseExpression AstNode expression to evaluate if test is false
Résultat void

SetQuestionMarkPosition() public méthode

Sets position of ? token
public SetQuestionMarkPosition ( int questionMarkPosition ) : void
questionMarkPosition int position of ? token
Résultat void

SetTestExpression() public méthode

Sets test expression, and sets its parent.
Sets test expression, and sets its parent.
/// if testExpression is /// null ///
public SetTestExpression ( AstNode testExpression ) : void
testExpression AstNode test expression
Résultat void

SetTrueExpression() public méthode

Sets expression to evaluate if test is true, and sets its parent to this node.
Sets expression to evaluate if test is true, and sets its parent to this node.
/// if expression is /// null ///
public SetTrueExpression ( AstNode trueExpression ) : void
trueExpression AstNode expression to evaluate if test is true
Résultat void

ToSource() public méthode

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

Visit() public méthode

Visits this node, then the test-expression, the true-expression, and the false-expression.
Visits this node, then the test-expression, the true-expression, and the false-expression.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
Résultat void