Go to the documentation of this file. 1 package com.cliffc.aa.type;
5 import java.util.Arrays;
19 private static final Key K =
new Key(
null,0);
22 private static class Key {
32 @Override
public boolean equals(Object o) {
33 if( !(o instanceof
Key) )
return false;
37 if(
_ts==
ts )
return true;
38 if(
_ts.length !=
ts.length )
return false;
39 for(
int i=0; i<
ts.length; i++ )
146 System.arraycopy(
ts,0,ts2,0,
ts.length);
153 int minlen = Math.min(len,
ts.length);
154 System.arraycopy(
ts,0,ts2,0,minlen);
155 Arrays.fill(ts2,minlen,len,
null);
159 if( ts0==ts1 )
return true;
160 if( ts0==
null || ts1==
null )
return false;
static boolean eq(Type[] ts0, Type[] ts1)
static Type[] ts(Type t0, Type t1)
an implementation of language AA
static Type[] ts(Type t0, Type t1, Type t2, Type t3, Type t4)
static Type[] ts(Type t0, Type t1, Type t2, Type t3)
static void free(Type[] ts)
static Type[] hash_cons(Type[] ts)
boolean check_(Type[] ts)
static Type[] ts(Type t0)
static Type[] clone(Type[] ts)
static Types tary(int len)
static Type[] ts(Type t0, Type t1, Type t2, Type t3, Type t4, Type t5)
static Type[] copyOf(Type[] ts, int len)
Type[] hash_cons_(Type[] ts)
static int hash(Type[] ts)
static final Ary< Types > TYPEARY
static Type[] ts(Type t0, Type t1, Type t2)