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

Please look at the Parser.jjt file which is what controls the generation of this class. *
Inheritance: NVelocity.Runtime.Parser.Node.SimpleNode
显示文件 Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

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

Accept the visitor.

Evaluate ( IInternalContextAdapter context ) : bool

logical and : null && right = false left && null = false null && null = false

Value ( IInternalContextAdapter context ) : Object

Returns the value of the expression. Since the value of the expression is simply the boolean result of evaluate(), lets return that.

Method Details

ASTAndNode() public method

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

ASTAndNode() public method

public ASTAndNode ( 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

logical and : null && right = false left && null = false null && null = false
public Evaluate ( IInternalContextAdapter context ) : bool
context IInternalContextAdapter
return bool

Value() public method

Returns the value of the expression. Since the value of the expression is simply the boolean result of evaluate(), lets return that.
public Value ( IInternalContextAdapter context ) : Object
context IInternalContextAdapter
return Object