Examples of Collect


Examples of ar.edu.unlp.yaqc4j.annotations.Collect

    collectors = new Collector[this.method.getMethod().getParameterAnnotations().length];
    int index = 0;
    for (Annotation[] annotations:this.method.getMethod().getParameterAnnotations()){
      for (Annotation annotation:annotations){
        if (annotation.annotationType().equals(Collect.class)){
          Collect collectAnnotation = (Collect) annotation;
          try {
            collectors[index] = collectAnnotation.collector().newInstance();
            collectors[index].setName(collectAnnotation.name());
          } catch (Exception e) {
            throw new RuntimeException(e);
          }
        }
      }
View Full Code Here

Examples of com.headius.invokebinder.transform.Collect

     * @param index the index from which to start boxing args
     * @param type  the array type into which the args will be boxed
     * @return a new Binder
     */
    public Binder collect(int index, Class type) {
        return new Binder(this, new Collect(type(), index, type));
    }
View Full Code Here

Examples of com.headius.invokebinder.transform.Collect

     * @param count the count of arguments to box
     * @param type  the array type into which the args will be boxed
     * @return a new Binder
     */
    public Binder collect(int index, int count, Class type) {
        return new Binder(this, new Collect(type(), index, count, type));
    }
View Full Code Here

Examples of net.sf.kpex.builtins.Collect

    // fluent controllers
    register(new Get());
    register(new Put());
    register(new Stop());
    register(new Collect());

    // fluent combinators
    register(new SplitSource());
    register(new MergeSources());
    // see compose_sources,append_sources,merge_sources in lib.pro
View Full Code Here

Examples of org.drools.core.rule.Collect

    public void build(final BuildContext context,
                      final BuildUtils utils,
                      final RuleConditionElement rce) {

        boolean existSubNetwort = false;
        final Collect collect = (Collect) rce;
        context.pushRuleComponent( collect );

        final List resultBetaConstraints = context.getBetaconstraints();
        final List resultAlphaConstraints = context.getAlphaConstraints();

        final Pattern sourcePattern = collect.getSourcePattern();
        final Pattern resultPattern = collect.getResultPattern();

        // get builder for the pattern
        final ReteooComponentBuilder builder = utils.getBuilderFor( sourcePattern );

        // save tuple source and pattern offset for later if needed
View Full Code Here

Examples of org.drools.core.rule.Collect

    public void build(final BuildContext context,
                      final BuildUtils utils,
                      final RuleConditionElement rce) {

        boolean existSubNetwort = false;
        final Collect collect = (Collect) rce;
        context.pushRuleComponent( collect );

        final List resultBetaConstraints = context.getBetaconstraints();
        final List resultAlphaConstraints = context.getAlphaConstraints();

        final Pattern sourcePattern = collect.getSourcePattern();
        final Pattern resultPattern = collect.getResultPattern();

        // get builder for the pattern
        final ReteooComponentBuilder builder = utils.getBuilderFor( sourcePattern );

        // save tuple source and pattern offset for later if needed
View Full Code Here

Examples of org.drools.core.rule.Collect

    public void build(final BuildContext context,
                      final BuildUtils utils,
                      final RuleConditionElement rce) {

        boolean existSubNetwort = false;
        final Collect collect = (Collect) rce;
        context.pushRuleComponent( collect );

        final List resultBetaConstraints = context.getBetaconstraints();
        final List resultAlphaConstraints = context.getAlphaConstraints();

        final Pattern sourcePattern = collect.getSourcePattern();
        final Pattern resultPattern = collect.getResultPattern();

        // get builder for the pattern
        final ReteooComponentBuilder builder = utils.getBuilderFor( sourcePattern );

        // save tuple source and pattern offset for later if needed
View Full Code Here

Examples of org.drools.core.rule.Collect

        final String className = "collect" + context.getNextId();
        collectDescr.setClassMethodName( className );
       
        Pattern resultPattern = (Pattern) context.getBuildStack().peek();

        final Collect collect = new Collect( sourcePattern,
                                             resultPattern );
        return collect;
    }
View Full Code Here

Examples of org.drools.rule.Collect

    public void build(final BuildContext context,
                      final BuildUtils utils,
                      final RuleConditionElement rce) {

        boolean existSubNetwort = false;
        final Collect collect = (Collect) rce;
        context.pushRuleComponent( collect );

        final List resultBetaConstraints = context.getBetaconstraints();
        final List resultAlphaConstraints = context.getAlphaConstraints();

        final Pattern sourcePattern = collect.getSourcePattern();
        final Pattern resultPattern = collect.getResultPattern();

        // get builder for the pattern
        final ReteooComponentBuilder builder = utils.getBuilderFor( sourcePattern );

        // save tuple source and pattern offset for later if needed
View Full Code Here

Examples of org.drools.rule.Collect

        final String className = "collect" + context.getNextId();
        collectDescr.setClassMethodName( className );
       
        Pattern resultPattern = (Pattern) context.getBuildStack().peek();

        final Collect collect = new Collect( sourcePattern,
                                             resultPattern );
        return collect;
    }
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.