Examples of FieldExtractor


Examples of org.drools.spi.FieldExtractor

                                                                               ruleDescr,
                                                                               pkgBuilder.getDialectRegistry(),
                                                                               mvelDialect );

        final InstrumentedDeclarationScopeResolver declarationResolver = new InstrumentedDeclarationScopeResolver();
        final FieldExtractor extractor = cache.getExtractor( Cheese.class,
                                                             "price",
                                                             getClass().getClassLoader() );

        final Pattern patternA = new Pattern( 0,
                                              new ClassObjectType( Cheese.class ) );
View Full Code Here

Examples of org.drools.spi.FieldExtractor

                                                                               pkgBuilder.getDialectRegistry(),
                                                                               mvelDialect );

        final InstrumentedDeclarationScopeResolver declarationResolver = new InstrumentedDeclarationScopeResolver();

        final FieldExtractor extractor = cache.getExtractor( Cheese.class,
                                                             "price",
                                                             getClass().getClassLoader() );

        final Pattern pattern = new Pattern( 0,
                                             new ClassObjectType( int.class ) );
View Full Code Here

Examples of org.drools.spi.FieldExtractor

                                                                               ruleDescr,
                                                                               pkgBuilder.getDialectRegistry(),
                                                                               mvelDialect );
       
        final InstrumentedDeclarationScopeResolver declarationResolver = new InstrumentedDeclarationScopeResolver();
        final FieldExtractor extractor = cache.getExtractor( Cheese.class, "price",
                                                                                getClass().getClassLoader() );
       
        final Pattern patternA = new Pattern( 0,
                                              new ClassObjectType( int.class ) );
View Full Code Here

Examples of org.drools.spi.FieldExtractor

     */
    public Object getValue(InternalWorkingMemory workingMemory, Object object) {
        for( Iterator it = this.extractors.entrySet().iterator(); it.hasNext(); ) {
            Map.Entry entry = (Map.Entry) it.next();
            String var = (String) entry.getKey();
            FieldExtractor extr = (FieldExtractor) entry.getValue();
           
            this.variables.put( var, extr.getValue( workingMemory, object ));
        }
        return MVEL.executeExpression( mvelExpression, this.variables );
    }
View Full Code Here

Examples of org.drools.spi.FieldExtractor

                if ( !fieldIndex.isHashed() ) {
                    continue;
                }
                // this field is hashed so set the existing hashKey and see if there is a sink for it
                final int index = fieldIndex.getIndex();
                final FieldExtractor extractor = fieldIndex.getFieldExtactor();
                this.hashKey.setValue( index,
                                       object,
                                       extractor );
                final ObjectSink sink = (ObjectSink) this.hashedSinkMap.get( this.hashKey );
                if ( sink != null ) {
View Full Code Here

Examples of org.drools.spi.FieldExtractor

                    if ( !fieldIndex.isHashed() ) {
                        continue;
                    }

                    final int index = fieldIndex.getIndex();
                    final FieldExtractor extractor = fieldIndex.getFieldExtactor();
                    this.hashKey.setValue( index,
                                           object,
                                           extractor );
                    final ObjectSink sink = (ObjectSink) this.hashedSinkMap.get( this.hashKey );
                    if ( sink != null ) {
View Full Code Here

Examples of org.drools.spi.FieldExtractor

                                                                       null,
                                                                       null );

        final MockObjectSource source = new MockObjectSource( buildContext.getNextId() );

        final FieldExtractor extractor = cache.getExtractor( Cheese.class,
                                                             "type",
                                                             getClass().getClassLoader() );

        final FieldValue field = FieldFactory.getFieldValue( "cheddar" );
View Full Code Here

Examples of org.drools.spi.FieldExtractor

                                                                       null,
                                                                       null );

        final MockObjectSource source = new MockObjectSource( buildContext.getNextId() );

        final FieldExtractor extractor = cache.getExtractor( Cheese.class,
                                                             "type",
                                                             getClass().getClassLoader() );

        final FieldValue field = FieldFactory.getFieldValue( "cheddar" );
View Full Code Here

Examples of org.drools.spi.FieldExtractor

                                                                       null,
                                                                       null );

        final MockObjectSource source = new MockObjectSource( buildContext.getNextId() );

        final FieldExtractor extractor = cache.getExtractor( Cheese.class,
                                                             "type",
                                                             getClass().getClassLoader() );

        final FieldValue field = FieldFactory.getFieldValue( "cheddar" );
View Full Code Here

Examples of org.drools.spi.FieldExtractor

                                                                       null,
                                                                       null );

        final MockObjectSource source = new MockObjectSource( buildContext.getNextId() );

        final FieldExtractor extractor = cache.getExtractor( Cheese.class,
                                                             "type",
                                                             getClass().getClassLoader() );

        final FieldValue field = FieldFactory.getFieldValue( "cheddar" );
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.