Modifier and Type | Field and Description |
---|---|
static Operator |
DIV
/ operator.
|
static Operator |
MOINS
- operator.
|
static Operator |
MULT
* operator.
|
static Operator |
PLUS
+ operator.
|
Constructor and Description |
---|
Operator(java.lang.String op,
int ar)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getArity()
Give the arity of the oprator.
|
java.lang.String |
getName()
Gets the name.
|
java.lang.String |
toString()
Give the external representation.
|
public static final Operator PLUS
public static final Operator MOINS
public static final Operator DIV
public static final Operator MULT
public Operator(java.lang.String op, int ar)
op
- the opar
- the arpublic java.lang.String getName()
public java.lang.String toString()
OperatorI