FileDocCategorySizeDatePackage
LogicalOperatorNode.javaAPI DocGlassfish v2 API2899Tue May 22 16:54:38 BST 2007oracle.toplink.essentials.internal.parsing

LogicalOperatorNode

public class LogicalOperatorNode extends Node
INTERNAL

Purpose: This is the superclass for the logical operators (NOT, AND, OR)

Responsibilities:

  • Answer true if this node contains the passed node
author
Jon Driscoll and Joel Lucuik
since
TopLink 4.0

Fields Summary
Constructors Summary
public LogicalOperatorNode()
Return a new LogicalOperatorNode.

        super();
    
Methods Summary
public voidvalidate(oracle.toplink.essentials.internal.parsing.ParseTreeContext context)
INTERNAL Validate node and calculate its type.

        super.validate(context);
        if ((left != null) && (right != null)) {
            left.validateParameter(context, right.getType());
            right.validateParameter(context, left.getType());
        }
        
        TypeHelper typeHelper = context.getTypeHelper();
        setType(typeHelper.getBooleanType());