public final class OperationDescription
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OperationDescription.Type
This enumeration contains the operation types.
|
| Constructor and Description |
|---|
OperationDescription(java.lang.String[] sign)
Constructs an operation description.
|
OperationDescription(java.lang.String[] sign,
boolean addSpaces)
Constructs an operation description.
|
OperationDescription(java.lang.String[] sign,
boolean addSpaces,
int[] order)
Constructs an operation description.
|
OperationDescription(java.lang.String[] sign,
int[] order)
Constructs an operation description.
|
OperationDescription(java.lang.String sign,
OperationDescription.Type type)
Constructs an operation description.
|
OperationDescription(java.lang.String sign,
OperationDescription.Type type,
boolean addSpaces)
Constructs an operation description.
|
OperationDescription(java.lang.String prefix,
java.lang.String[] infix,
java.lang.String suffix)
Constructs an operation description.
|
OperationDescription(java.lang.String prefix,
java.lang.String[] infix,
java.lang.String suffix,
int[] order)
Constructs an operation description.
|
OperationDescription(java.lang.String prefix,
java.lang.String infix,
java.lang.String suffix)
Constructs an operation description.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getInfix()
Returns the operation infix (string written between two operands).
|
java.lang.String |
getInfix(int i)
Returns the
i-th operation infix (string written between i-th and
(i+1)-th operands). |
int[] |
getOrder()
Returns the order of operands.
|
java.lang.String |
getPrefix()
Returns the operation prefix (string written before the first operand).
|
java.lang.String |
getSuffix()
Returns the operation suffix (string written after the last operand).
|
public OperationDescription(java.lang.String prefix,
java.lang.String[] infix,
java.lang.String suffix,
int[] order)
prefix - the operation prefix.infix - the operation infixes.suffix - the operation suffix.order - the order of operands.public OperationDescription(java.lang.String prefix,
java.lang.String[] infix,
java.lang.String suffix)
prefix - the operation prefix.infix - the operation infixes.suffix - the operation suffix.public OperationDescription(java.lang.String prefix,
java.lang.String infix,
java.lang.String suffix)
prefix - the operation prefix.infix - the operation infix.suffix - the operation suffix.public OperationDescription(java.lang.String sign,
OperationDescription.Type type,
boolean addSpaces)
sign - the operation sign.type - the operation type.addSpaces - the flag indicating whether spaces before and after the operation sign are
required.public OperationDescription(java.lang.String sign,
OperationDescription.Type type)
sign - the operation sign.type - the operation type.public OperationDescription(java.lang.String[] sign,
boolean addSpaces,
int[] order)
sign - the operation signs.addSpaces - the flag indicating whether spaces before and after the operation sign are
required.order - the order of operands.public OperationDescription(java.lang.String[] sign,
boolean addSpaces)
sign - the operation signs.addSpaces - the flag indicating whether spaces before and after the operation sign are
required.public OperationDescription(java.lang.String[] sign,
int[] order)
sign - the operation signs.order - the order of operands.public OperationDescription(java.lang.String[] sign)
sign - the operation signs.public java.lang.String getPrefix()
public java.lang.String getInfix()
public java.lang.String getInfix(int i)
i-th operation infix (string written between i-th and
(i+1)-th operands).i-th operation infix.public java.lang.String getSuffix()
public int[] getOrder()
null for the standard order.