C# Class NVelocity.Runtime.Parser.Node.ASTEQNode

Handles the equivalence operator * == * This operator requires that the LHS and RHS are both of the same Class. *
Inheritance: NVelocity.Runtime.Parser.Node.SimpleNode
Exibir arquivo Open project: rasmus-toftdahl-olesen/NVelocity Class Usage Examples

Public Methods

Method Description
ASTEQNode ( Parser p, int id ) : System
ASTEQNode ( int id ) : System
Accept ( IParserVisitor visitor, Object data ) : Object

Accept the visitor. *

Evaluate ( IInternalContextAdapter context ) : bool

Calculates the value of the logical expression arg1 == arg2 All class types are supported. Uses equals() to determine equivalence. This should work as we represent with the types we already support, and anything else that implements equals() to mean more than identical references.

Method Details

ASTEQNode() public method

public ASTEQNode ( Parser p, int id ) : System
p Parser
id int
return System

ASTEQNode() public method

public ASTEQNode ( int id ) : System
id int
return System

Accept() public method

Accept the visitor. *
public Accept ( IParserVisitor visitor, Object data ) : Object
visitor IParserVisitor
data Object
return Object

Evaluate() public method

Calculates the value of the logical expression arg1 == arg2 All class types are supported. Uses equals() to determine equivalence. This should work as we represent with the types we already support, and anything else that implements equals() to mean more than identical references.
public Evaluate ( IInternalContextAdapter context ) : bool
context IInternalContextAdapter internal context used to evaluate the LHS and RHS
return bool