Go to the documentation of this file. 1 package com.cliffc.aa.type;
3 import java.util.HashMap;
10 private static final HashMap<BitsFun,BitsFun>
INTERN =
new HashMap<>();
14 if( b1 ==
null ) b1 =
new BitsFun();
18 if( b2 !=
null ) {
FREE = b1;
return b2; }
19 else {
INTERN.put(b1,b1);
return b1; }
23 @Override
public Tree<BitsFun>
tree() {
return TREE; }
46 public static int peek() {
return TREE.peek(); }
50 public static int parent(
int kid ) {
return TREE.parent(kid); }
52 public static int next_kid(
int alias,
int kid ) {
return TREE.next_kid(alias,kid); }
static long[] bits(int b)
static BitsFun make_new_fidx(int parent_fidx)
static final Bits.Tree< BitsFun > TREE
static int parent(int kid)
static final BitsFun EMPTY
static BitsFun make0(int bit)
B make(boolean any, long[] bits)
static final BitsFun FULL
static final BitsFun XNIL
static BitsFun make0(int... bits)
static boolean is_parent(int idx)
void init(int con, long[] bits)
BitsFun make_impl(int con, long[] bits)
static final HashMap< BitsFun, BitsFun > INTERN
static void reset_to_init0()
static int next_kid(int alias, int kid)
static int new_fidx(int par)