public final class MmuExpression
extends java.lang.Object
MmuExpression
represents an expression, which is a sequence of IntegerField
.Modifier and Type | Method and Description |
---|---|
static MmuExpression |
cat(IntegerField... fields) |
static MmuExpression |
cat(java.util.List<IntegerField> fields)
Creates a concatenation of the fields.
|
static MmuExpression |
catVars(IntegerVariable... variables) |
static MmuExpression |
catVars(java.util.List<IntegerVariable> variables) |
static MmuExpression |
empty() |
static MmuExpression |
field(IntegerField field) |
int |
getHiIndex(IntegerVariable variable) |
MmuExpression |
getInstance(MemoryAccessStack stack) |
int |
getLoIndex(IntegerVariable variable) |
java.util.List<IntegerField> |
getTerms() |
int |
getWidth() |
static MmuExpression |
rcat(IntegerField... fields) |
static MmuExpression |
rcat(java.util.List<IntegerField> fields)
Creates a reversed concatenation of the fields.
|
static MmuExpression |
rcatVars(java.util.Collection<IntegerVariable> variables) |
static MmuExpression |
rcatVars(IntegerVariable... variables) |
int |
size() |
java.lang.String |
toString() |
static MmuExpression |
val(java.math.BigInteger value,
int width) |
static MmuExpression |
var(IntegerVariable variable) |
static MmuExpression |
var(IntegerVariable variable,
int lo,
int hi) |
public static MmuExpression cat(java.util.List<IntegerField> fields)
fields
- the fields to be concatenated.public static MmuExpression cat(IntegerField... fields)
public static MmuExpression catVars(java.util.List<IntegerVariable> variables)
public static MmuExpression catVars(IntegerVariable... variables)
public static MmuExpression rcat(java.util.List<IntegerField> fields)
fields
- the fields to be concatenated.public static MmuExpression rcat(IntegerField... fields)
public static MmuExpression rcatVars(java.util.Collection<IntegerVariable> variables)
public static MmuExpression rcatVars(IntegerVariable... variables)
public static MmuExpression empty()
public static MmuExpression field(IntegerField field)
public static MmuExpression var(IntegerVariable variable)
public static MmuExpression var(IntegerVariable variable, int lo, int hi)
public static MmuExpression val(java.math.BigInteger value, int width)
public int size()
public java.util.List<IntegerField> getTerms()
public int getWidth()
public int getLoIndex(IntegerVariable variable)
public int getHiIndex(IntegerVariable variable)
public MmuExpression getInstance(MemoryAccessStack stack)
public java.lang.String toString()
toString
in class java.lang.Object