Lines Matching refs:addPos
856 * @param addPos Position where expression is to be added, or -1 for append.
862 protected int EqualityExpr(int addPos) throws javax.xml.transform.TransformerException
867 if (-1 == addPos)
868 addPos = opPos;
878 insertOp(addPos, 2, OpCodes.OP_NOTEQUALS);
880 int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;
882 addPos = EqualityExpr(addPos);
883 m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,
884 m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);
885 addPos += 2;
890 insertOp(addPos, 2, OpCodes.OP_EQUALS);
892 int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;
894 addPos = EqualityExpr(addPos);
895 m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,
896 m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);
897 addPos += 2;
901 return addPos;
916 * @param addPos Position where expression is to be added, or -1 for append.
922 protected int RelationalExpr(int addPos) throws javax.xml.transform.TransformerException
927 if (-1 == addPos)
928 addPos = opPos;
941 insertOp(addPos, 2, OpCodes.OP_LTE);
945 insertOp(addPos, 2, OpCodes.OP_LT);
948 int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;
950 addPos = RelationalExpr(addPos);
951 m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,
952 m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);
953 addPos += 2;
962 insertOp(addPos, 2, OpCodes.OP_GTE);
966 insertOp(addPos, 2, OpCodes.OP_GT);
969 int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;
971 addPos = RelationalExpr(addPos);
972 m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,
973 m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);
974 addPos += 2;
978 return addPos;
991 * @param addPos Position where expression is to be added, or -1 for append.
997 protected int AdditiveExpr(int addPos) throws javax.xml.transform.TransformerException
1002 if (-1 == addPos)
1003 addPos = opPos;
1012 insertOp(addPos, 2, OpCodes.OP_PLUS);
1014 int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;
1016 addPos = AdditiveExpr(addPos);
1017 m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,
1018 m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);
1019 addPos += 2;
1024 insertOp(addPos, 2, OpCodes.OP_MINUS);
1026 int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;
1028 addPos = AdditiveExpr(addPos);
1029 m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,
1030 m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);
1031 addPos += 2;
1035 return addPos;
1049 * @param addPos Position where expression is to be added, or -1 for append.
1055 protected int MultiplicativeExpr(int addPos) throws javax.xml.transform.TransformerException
1060 if (-1 == addPos)
1061 addPos = opPos;
1070 insertOp(addPos, 2, OpCodes.OP_MULT);
1072 int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;
1074 addPos = MultiplicativeExpr(addPos);
1075 m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,
1076 m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);
1077 addPos += 2;
1082 insertOp(addPos, 2, OpCodes.OP_DIV);
1084 int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;
1086 addPos = MultiplicativeExpr(addPos);
1087 m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,
1088 m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);
1089 addPos += 2;
1094 insertOp(addPos, 2, OpCodes.OP_MOD);
1096 int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;
1098 addPos = MultiplicativeExpr(addPos);
1099 m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,
1100 m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);
1101 addPos += 2;
1106 insertOp(addPos, 2, OpCodes.OP_QUO);
1108 int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;
1110 addPos = MultiplicativeExpr(addPos);
1111 m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,
1112 m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);
1113 addPos += 2;
1117 return addPos;