Package net.fortytwo.ripple.model

Examples of net.fortytwo.ripple.model.RippleList.push()


        stack = stack.getRest();

        RDFValue uri = mc.valueOf(s);

        solutions.put(
                stack.push(uri));
    }
}
View Full Code Here


        // Note: equals() is not suitable for this operation (for instance,
        //       it may yield false for RdfValues containing identical
        //       Literals).
        result = mc.valueOf(0 == mc.getComparator().compare(a, b));

        solutions.put(stack.push(result));
    }
}
View Full Code Here

            logger.fine("bad integer value: " + s);
            return;
        }

        solutions.put(
                stack.push(mc.valueOf(i)));
    }
}
View Full Code Here

        int result = mc.getComparator().compare(x, y);

        // Constrain the result to three possible values.
        result = (result < 0) ? -1 : (result > 0) ? 1 : 0;

        solutions.put(stack.push(mc.valueOf(result)));
    }
}
View Full Code Here

        RippleList stack = arg;
        Date d = mc.toDateValue(stack.getFirst());
        stack = stack.getRest();

        solutions.put(stack.push(
                mc.valueOf(d.getTime())));
    }
}
View Full Code Here

        stack = stack.getRest();

        result = mc.valueOf(mc.getComparator().compare(a, b) < 0);

        solutions.put(
                stack.push(result));
    }
}
View Full Code Here

            logger.fine("bad integer value: " + s);
            return;
        }

        solutions.put(
                stack.push(mc.valueOf(d)));
    }
}
View Full Code Here

        stack = stack.getRest();

        if (first instanceof KeyValueValue) {
            for (String key : ((KeyValueValue) first).getKeys()) {
                RippleValue value = ((KeyValueValue) first).getValue(key, mc);
                solutions.put(stack.push(mc.valueOf(key)).push(value));
            }
        }
    }
}
View Full Code Here

        RippleValue first = stack.getFirst();
        final RippleList rest = stack.getRest();

        Sink<Operator> opSink = new Sink<Operator>() {
            public void put(final Operator op) throws RippleException {
                solutions.put(rest.push(
                        new StackMappingWrapper(new StarQuantifier(op), mc)));
            }
        };

        Operator.createOperator(first, opSink, mc);
View Full Code Here

                        throw new RippleException("list index out of bounds: " + index);
                    }
                }

                solutions.put(
                        rest.push(list.getFirst()));
            }
        };

        mc.toList(l, listSink);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.