summaryrefslogtreecommitdiff
path: root/src/main/java/com/seaofnodes/simple/node/ModeNode.java
blob: dc635447548382318eb270abd6cb355e59570a76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package com.seaofnodes.simple.node;

/**
 * A node whose numeric input family is selected once: unknown, integer, or
 * floating point.  Implementors remain ordinary Nodes; this interface only
 * centralizes the structural mode contract shared by arithmetic, comparisons,
 * and unary minus.
 */
public interface ModeNode {
    byte mode();
    Node setMode(byte mode);
}