public class OpChain extends Operator
OpChain class.
Constructor and Description |
---|
OpChain()
Constructor for OpChain.
|
OpChain(EquPart opTok)
Constructor for OpChain.
|
Modifier and Type | Method and Description |
---|---|
boolean |
includeInRpn()
includeInRpn.
|
boolean |
negatize(EquPart rightSide)
This is just to the left of a subtraction meaning that the minus sign is
the first thing in an equation.
|
protected int |
precedence()
precedence.
|
void |
resolve(ValueStack values)
resolve.
|
String |
toString() |
convertToBoolean, convertToDouble, preceeds
public boolean includeInRpn()
includeInRpn.
includeInRpn
in class Operation
public boolean negatize(EquPart rightSide)
protected int precedence()
precedence.
precedence
in class Operator
public void resolve(ValueStack values) throws Exception
resolve.
This is an intermediate result. Its result is not directly returned. Assign the value to a variable if you need access to it later.
resolve
in class EquPart
values
- a ValueStack
object.Exception
- if any.Copyright © 2018 CodeTaco. All rights reserved.