|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.singularsys.jep.OperatorTable
com.singularsys.jep.standard.StandardOperatorTable
com.singularsys.jep.misc.ExtendedOperatorSet
public class ExtendedOperatorSet
A example of an OperatorSet which demonstrates some features. Suffix operators: n! (factorial) and n% (percentage) TernaryOperator: cond?tval:fval
Nested Class Summary | |
---|---|
static class |
ExtendedOperatorSet.Factorial
Simple implementation of factorial, good up to 20! |
Field Summary | |
---|---|
static int |
OP_FACT
|
static int |
OP_IF
|
static int |
OP_PERCENT
|
Fields inherited from class com.singularsys.jep.OperatorTable |
---|
baseNumOps, numOps, OP_ADD, OP_AND, OP_ASSIGN, OP_CROSS, OP_DIVIDE, OP_DOT, OP_ELEMENT, OP_EQ, OP_GE, OP_GT, OP_LE, OP_LIST, OP_LT, OP_MOD, OP_MULTIPLY, OP_NE, OP_NEGATE, OP_NOP, OP_NOT, OP_OR, OP_POWER, OP_RANGE, OP_RECIP, OP_SUBTRACT, OP_UPLUS, ops |
Constructor Summary | |
---|---|
ExtendedOperatorSet()
|
Method Summary |
---|
Methods inherited from class com.singularsys.jep.standard.StandardOperatorTable |
---|
init |
Methods inherited from class com.singularsys.jep.OperatorTable |
---|
addOperator, addOperator, appendOperator, getAdd, getAnd, getAssign, getCross, getDivide, getDot, getEle, getEQ, getGE, getGT, getLE, getList, getLT, getMod, getMultiply, getNE, getNop, getNot, getNumOps, getOperator, getOperators, getOperatorsByName, getOperatorsBySymbol, getOr, getPower, getRange, getSubtract, getUDivide, getUMinus, getUPlus, insertOperator, removeOperator, setBinaryInverseOp, setDistributiveOver, setInverseOp, setNumOps, setPrecedenceTable, setRootOp, setStandardOperatorRelations, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int OP_FACT
public static final int OP_PERCENT
public static final int OP_IF
Constructor Detail |
---|
public ExtendedOperatorSet()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |