public final class IgSubprogramMapper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ru.ispras.fortress.expression.Node |
getMacroOperation(java.lang.String name,
ru.ispras.fortress.expression.Node... operands)
Returns the syntax node for the macro-definition that is described by it's name and operands.
|
static ru.ispras.fortress.expression.StandardOperation |
getOperationCode(java.lang.String opName)
Gets operation code of the operation with the specified name.
|
static boolean |
hasMacro(java.lang.String name)
Checks whether this macro-definition is supported.
|
static boolean |
hasOperation(java.lang.String operation)
Checks whether operation is supported.
|
public static boolean hasOperation(java.lang.String operation)
operation
- Operation identifier.true
if operation is supported, true
otherwise.java.lang.IllegalArgumentException
- when argument is null
.public static boolean hasMacro(java.lang.String name)
name
- The macro-definition name.true
if macro-definition is supported, false
otherwise.java.lang.IllegalArgumentException
- when argument is null
.public static ru.ispras.fortress.expression.StandardOperation getOperationCode(java.lang.String opName)
opName
- Operation name.java.lang.IllegalArgumentException
- when argument is null
.java.lang.UnsupportedOperationException
- when IgSubprogramMapper
does not contain an operation with the specified string name.public static ru.ispras.fortress.expression.Node getMacroOperation(java.lang.String name, ru.ispras.fortress.expression.Node... operands)
name
- The macro-definition name.operands
- Operands for the macro-definition.