public class OpFactorial extends Operator
OpFactorial class.
Constructor and Description |
---|
OpFactorial()
Constructor for OpFactorial.
|
OpFactorial(EquPart opTok)
Constructor for OpFactorial.
|
Modifier and Type | Method and Description |
---|---|
boolean |
multiplize(EquPart rightSide)
multiplize.
|
boolean |
negatize(EquPart rightSide)
factorial followed by a minus sign is always subtraction.
|
protected int |
precedence()
precedence.
|
void |
resolve(ValueStack values)
resolve.
|
String |
toString() |
convertToBoolean, convertToDouble, includeInRpn, preceeds
public boolean multiplize(EquPart rightSide)
multiplize.
multiplize
in class EquPart
rightSide
- is not usedpublic boolean negatize(EquPart rightSide)
protected int precedence()
precedence.
precedence
in class Operator
public void resolve(ValueStack values) throws Exception
resolve.
resolve
in class EquPart
values
- a ValueStack
object.Exception
- if any.Copyright © 2018 CodeTaco. All rights reserved.