메소드 | 설명 | |
---|---|---|
GetOperand ( ) : AstNode | ||
GetOperator ( ) : int |
Returns operator token – alias for
|
|
IsPostfix ( ) : bool |
Returns whether the operator is postfix
|
|
IsPrefix ( ) : bool |
Returns whether the operator is prefix
|
|
SetIsPostfix ( bool isPostfix ) : void |
Sets whether the operator is postfix
|
|
SetOperand ( AstNode operand ) : void |
Sets the operand, and sets its parent to be this node. Sets the operand, and sets its parent to be this node. |
|
SetOperator ( int @operator ) : void |
Sets operator – same as
|
|
ToSource ( int depth ) : string | ||
UnaryExpression ( ) : System | ||
UnaryExpression ( int pos ) : System | ||
UnaryExpression ( int pos, int len ) : System |
Constructs a new postfix UnaryExpression
|
|
UnaryExpression ( int @operator, int operatorPosition, AstNode operand ) : System |
Constructs a new prefix UnaryExpression. Constructs a new prefix UnaryExpression. |
|
UnaryExpression ( int @operator, int operatorPosition, AstNode operand, bool postFix ) : System |
Constructs a new UnaryExpression with the specified operator and operand. Constructs a new UnaryExpression with the specified operator and operand. It sets the parent of the operand, and sets its own bounds to encompass the operator and operand. |
|
Visit ( NodeVisitor v ) : void |
Visits this node, then the operand. Visits this node, then the operand. |
public UnaryExpression ( int pos, int len ) : System | ||
pos | int | |
len | int | |
리턴 | System |
public UnaryExpression ( int @operator, int operatorPosition, AstNode operand ) : System | ||
@operator | int | |
operatorPosition | int | |
operand | AstNode | |
리턴 | System |
public UnaryExpression ( int @operator, int operatorPosition, AstNode operand, bool postFix ) : System | ||
@operator | int | |
operatorPosition | int | the absolute position of the operator. |
operand | AstNode | the operand expression |
postFix | bool | true if the operator follows the operand. Int |
리턴 | System |