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

NotNode

public class NotNode extends LogicalOperatorNode
INTERNAL

Purpose: Represent a NOT

Responsibilities:

  • Generate the correct expression for a NOT
author
Jon Driscoll and Joel Lucuik
since
TopLink 4.0

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

        super();
    
Methods Summary
public oracle.toplink.essentials.expressions.ExpressiongenerateExpression(oracle.toplink.essentials.internal.parsing.GenerationContext context)
INTERNAL Return a TopLink expression by calling generateExpression on the right node and adding .not() to the returned expression

        return getLeft().generateExpression(context).not();
    
public booleanisNotNode()
INTERNAL Is this node a Not node

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

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