Debian Codegraph @

net/sf/saxon/expr/Negatable.java

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2018 Saxonica Limited.
3 // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
6 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7
8 package net.sf.saxon.expr;
9
10 import net.sf.saxon.type.TypeHierarchy;
11
12 /**
13 * This interface is implemented by expressions that returns a boolean value, and returns an expression
14 * whose result is the negated boolean value
15 */
16 public interface Negatable {
17
18 /**
19 * Check whether this specific instance of the expression is negatable
20 *
21 * @return true if it is
22 * @param th
23 */
24
25 public boolean isNegatable(TypeHierarchy th);
26
27 /**
28 * Create an expression that returns the negation of this expression
29 *
30 * @return the negated expression
31 */
32
33 public Expression negate();
34 }