public final class IgBinaryMapper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ru.ispras.fortress.expression.StandardOperation |
getOperationCode(org.zamia.instgraph.IGOperationBinary binary)
Gets operation code of the specified operation.
|
static boolean |
hasOperation(org.zamia.instgraph.IGOperationBinary.BinOp operation)
Checks whether operation is supported.
|
public static boolean hasOperation(org.zamia.instgraph.IGOperationBinary.BinOp operation)
If operation is supported, then it's identifier is in this mapping.
operation
- IG operation identifier.true
if operation is supported, false
otherwise.java.lang.IllegalArgumentException
- when argument is null
.public static ru.ispras.fortress.expression.StandardOperation getOperationCode(org.zamia.instgraph.IGOperationBinary binary)
binary
- IG operationjava.lang.IllegalArgumentException
- when argument is null
.java.lang.UnsupportedOperationException
- when operation does not
have corresponding operation code in this mapping.