public class JavaOperatorTable extends BitwiseOperatorTable
An operator table which supports most of the operators which appear in Java. Includes ++x, x++, a?b:c, x+=y etc. and bitwise operators.
The full set added is:
a&b
,
a|b
,
~a
,
a^b
,
a>>b
,
a<<b
a<<<b
,
x?y:z
,
++x
, --x
, x++
, x--
,
x+=y
, x-=y
, x*=y
, x/=y
,
x%=y
, x&=y
, x|=y
, x^=y
,
x<<=y
, x>>=y
, x<<<=y
.
Modifier and Type | Class and Description |
---|---|
static class |
JavaOperatorTable.JavaOperators |
BitwiseOperatorTable.BitwiseOperators
OperatorTable2.BasicOperators, OperatorTable2.PsudoOperators, OperatorTable2.SpecialOperators
EmptyOperatorTable.OperatorKey
Constructor and Description |
---|
JavaOperatorTable()
A JavaOperatorTable with power represented as ** and xor as ^.
|
JavaOperatorTable(OperatorTable2 oldTable,
java.lang.String powerSymbol,
java.lang.String xorSymbol)
A decerator constructor.
|
JavaOperatorTable(java.lang.String powerSymbol)
A JavaOperatorTable with xor represented as ^ and power as the argument.
|
JavaOperatorTable(java.lang.String powerSymbol,
java.lang.String xorSymbol)
A JavaOperatorTable with power and xor represented by the arguments
|
Modifier and Type | Method and Description |
---|---|
protected void |
addJavaOps() |
Operator |
getAndEquals() |
Operator |
getDivideEquals() |
Operator |
getLShiftEquals() |
Operator |
getMinusEquals() |
Operator |
getModEquals() |
Operator |
getOrEquals() |
Operator |
getPlusEquals() |
Operator |
getPostDec() |
Operator |
getPostInc() |
Operator |
getPreDec() |
Operator |
getPreInc() |
Operator |
getRShiftEquals() |
TernaryOperator |
getTernCond() |
Operator |
getTimesEquals() |
Operator |
getURShiftEquals() |
Operator |
getXOrEquals() |
protected void |
setJavaPfmcs() |
addBitOperators, getBitAnd, getBitComp, getBitOr, getBitXor, getLShift, getRShift, getURShift, setBasicPfmcs, setBitPfmcs, setPsudoPfmcs, setSpecialPfmcs
getAdd, getAnd, getAssign, getCross, getDivide, getDot, getEle, getEQ, getGE, getGT, getLE, getList, getLT, getMod, getMultiply, getNE, getNop, getNot, getOr, getPower, getRange, getSubtract, getUDivide, getUMinus, getUPlus
addOperator, addOperator, appendOperator, entrySet, getKey, getLightWeightInstance, getNumOps, getOperator, getOperators, getOperatorsByName, getOperatorsBySymbol, init, insertOperator, keySet, removeOperator, removeOperator, replaceOperator, replaceOperator, setBinaryInverseOp, setDistributiveOver, setGroupOperatorRelations, setGroupOperatorRelations, setInverseOp, setPrecedenceTable, setRootOp, setStandardOperatorRelations, toString
public JavaOperatorTable()
public JavaOperatorTable(java.lang.String powerSymbol)
powerSymbol
- sequence used to represent power.public JavaOperatorTable(java.lang.String powerSymbol, java.lang.String xorSymbol)
powerSymbol
- string used to represent power.xorSymbol
- string used to represent xor.public JavaOperatorTable(OperatorTable2 oldTable, java.lang.String powerSymbol, java.lang.String xorSymbol)
oldTable
- table with most operators.powerSymbol
- string used to represent power.xorSymbol
- string used to represent xor.protected void addJavaOps()
protected void setJavaPfmcs()
public Operator getPreInc()
public Operator getPreDec()
public Operator getPostInc()
public Operator getPostDec()
public TernaryOperator getTernCond()
public Operator getPlusEquals()
public Operator getMinusEquals()
public Operator getTimesEquals()
public Operator getDivideEquals()
public Operator getModEquals()
public Operator getAndEquals()
public Operator getOrEquals()
public Operator getXOrEquals()
public Operator getLShiftEquals()
public Operator getRShiftEquals()
public Operator getURShiftEquals()
Copyright © 2018 Singular Systems http://www.singularsys.com/jep