You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
431 B
23 lines
431 B
package net.mightypork.rcalc.operations;
|
|
|
|
|
|
import net.mightypork.rcalc.IEvaluableToken;
|
|
import net.mightypork.rcalc.TokenList;
|
|
import net.mightypork.rcalc.numbers.Fraction;
|
|
|
|
|
|
/**
|
|
* Abstract operation
|
|
*
|
|
* @author Ondrej Hruska
|
|
*/
|
|
public abstract class Operation implements IEvaluableToken {
|
|
|
|
@Override
|
|
public abstract Fraction evaluate();
|
|
|
|
@Override
|
|
public TokenList wrapInTokenList() {
|
|
return new TokenList(this);
|
|
}
|
|
}
|
|
|