BinaryOpNode.BinaryOp


public final class BinaryOpNode.BinaryOp


A binary operation for combining two values in a BinaryOpNode. Unless otherwise specified for a particular operator, the result will be null (i.e. undefined) if either input value is null.

Summary

Public fields

static final @NonNull BinaryOpNode.BinaryOp

Evaluates to null if the first input is null, otherwise evaluates to the second input.

static final @NonNull BinaryOpNode.BinaryOp

Evaluates to the max of the two input values.

static final @NonNull BinaryOpNode.BinaryOp

Evaluates to the min of the two input values.

static final @NonNull BinaryOpNode.BinaryOp

Evaluates to first input if it's not null, otherwise evaluates to the second input.

static final @NonNull BinaryOpNode.BinaryOp

Evaluates to the product of the two input values.

static final @NonNull BinaryOpNode.BinaryOp

Evaluates to the sum of the two input values.

static final @NonNull BinaryOpNode.BinaryOp

If exactly one input isn't null, evaluates to that one, otherwise evaluates to null.

Public methods

@NonNull String

Public fields

AND_THEN

public static final @NonNull BinaryOpNode.BinaryOp AND_THEN

Evaluates to null if the first input is null, otherwise evaluates to the second input.

MAX

public static final @NonNull BinaryOpNode.BinaryOp MAX

Evaluates to the max of the two input values.

MIN

public static final @NonNull BinaryOpNode.BinaryOp MIN

Evaluates to the min of the two input values.

OR_ELSE

public static final @NonNull BinaryOpNode.BinaryOp OR_ELSE

Evaluates to first input if it's not null, otherwise evaluates to the second input.

PRODUCT

public static final @NonNull BinaryOpNode.BinaryOp PRODUCT

Evaluates to the product of the two input values.

SUM

public static final @NonNull BinaryOpNode.BinaryOp SUM

Evaluates to the sum of the two input values.

XOR_ELSE

public static final @NonNull BinaryOpNode.BinaryOp XOR_ELSE

If exactly one input isn't null, evaluates to that one, otherwise evaluates to null.

Public methods

toString

public @NonNull String toString()