Class Constant
- java.lang.Object
-
- ru.ispras.microtesk.translator.mir.Constant
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Constant
bitOf(long value)
boolean
equals(java.lang.Object o)
MirTy
getType()
java.math.BigInteger
getValue()
int
hashCode()
static Constant
ones(int size)
static Constant
ones(int size, int n)
java.lang.String
toString()
static Constant
valueOf(int size, long value)
static Constant
valueOf(int size, java.math.BigInteger value)
static Constant
zero(int bits)
-
-
-
Method Detail
-
valueOf
public static Constant valueOf(int size, long value)
-
valueOf
public static Constant valueOf(int size, java.math.BigInteger value)
-
bitOf
public static Constant bitOf(long value)
-
zero
public static Constant zero(int bits)
-
ones
public static Constant ones(int size)
-
ones
public static Constant ones(int size, int n)
-
getValue
public java.math.BigInteger getValue()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-