Package org.drools.workbench.models.commons.backend.rule.context

Examples of org.drools.workbench.models.commons.backend.rule.context.RHSGeneratorContext


                                                      final ActionFieldValue fieldValue ) {
            if ( gctx.getParent() == null ) {
                return;
            }
            buf.append( "@if{hasOutput" + gctx.getOffset() + " && (" );
            RHSGeneratorContext parent = gctx.getParent();
            while ( parent != null ) {
                buf.append( "hasOutput" + parent.getOffset() + ( parent.getParent() != null ? " || " : "" ) );
                parent = parent.getParent();
            }
            buf.append( ")}" );
            buf.append( ", \n" );
            buf.append( "@end{}" );
        }
View Full Code Here


                }
            }
        }

        public void visitActionUpdateField( final ActionUpdateField action ) {
            final RHSGeneratorContext gctx = generatorContextFactory.newChildGeneratorContext( rootContext,
                                                                                               action );
            preGenerateAction( gctx );

            buf.append( indentation );
            if ( isDSLEnhanced ) {
View Full Code Here

            }
        }

        private void generateModifyMethodCalls( final ActionFieldValue[] fieldValues,
                                                final RHSGeneratorContext parentContext ) {
            RHSGeneratorContext gctx = null;
            for ( int index = 0; index < fieldValues.length; index++ ) {
                final ActionFieldValue fieldValue = fieldValues[ index ];
                if ( index == 0 ) {
                    gctx = generatorContextFactory.newChildGeneratorContext( parentContext,
                                                                             fieldValue );
View Full Code Here

                }
            }
        }

        public void visitActionUpdateField( final ActionUpdateField action ) {
            final RHSGeneratorContext gctx = generatorContextFactory.newChildGeneratorContext( rootContext,
                                                                                               action );
            preGenerateAction( gctx );

            buf.append( indentation );
            if ( isDSLEnhanced ) {
View Full Code Here

            }
        }

        private void generateModifyMethodCalls( final ActionFieldValue[] fieldValues,
                                                final RHSGeneratorContext parentContext ) {
            RHSGeneratorContext gctx = null;
            for ( int index = 0; index < fieldValues.length; index++ ) {
                final ActionFieldValue fieldValue = fieldValues[ index ];
                if ( index == 0 ) {
                    gctx = generatorContextFactory.newChildGeneratorContext( parentContext,
                                                                             fieldValue );
View Full Code Here

                                                      final ActionFieldValue fieldValue ) {
            if ( gctx.getParent() == null ) {
                return;
            }
            buf.append( "@if{hasOutput" + gctx.getOffset() + " && (" );
            RHSGeneratorContext parent = gctx.getParent();
            while ( parent != null ) {
                buf.append( "hasOutput" + parent.getOffset() + ( parent.getParent() != null ? " || " : "" ) );
                parent = parent.getParent();
            }
            buf.append( ")}" );
            buf.append( ", \n" );
            buf.append( "@end{}" );
        }
View Full Code Here

                                                      final ActionFieldValue fieldValue ) {
            if ( gctx.getParent() == null ) {
                return;
            }
            buf.append( "@if{hasOutput" + gctx.getOffset() + " && (" );
            RHSGeneratorContext parent = gctx.getParent();
            while ( parent != null ) {
                buf.append( "hasOutput" + parent.getOffset() + ( parent.getParent() != null ? " || " : "" ) );
                parent = parent.getParent();
            }
            buf.append( ")}" );
            buf.append( ", \n" );
            buf.append( "@end{}" );
        }
View Full Code Here

                }
            }
        }

        public void visitActionUpdateField( final ActionUpdateField action ) {
            final RHSGeneratorContext gctx = generatorContextFactory.newChildGeneratorContext( rootContext,
                                                                                               action );
            preGenerateAction( gctx );

            buf.append( indentation );
            if ( isDSLEnhanced ) {
View Full Code Here

            }
        }

        private void generateModifyMethodCalls( final ActionFieldValue[] fieldValues,
                                                final RHSGeneratorContext parentContext ) {
            RHSGeneratorContext gctx = null;
            for ( int index = 0; index < fieldValues.length; index++ ) {
                final ActionFieldValue fieldValue = fieldValues[ index ];
                if ( index == 0 ) {
                    gctx = generatorContextFactory.newChildGeneratorContext( parentContext,
                                                                             fieldValue );
View Full Code Here

                                        buf );
            }
        }

        private void generateModifyMethodCalls( final ActionFieldValue[] fieldValues ) {
            RHSGeneratorContext gctx = generatorContextFactory.newGeneratorContext();
            for ( int index = 0; index < fieldValues.length; index++ ) {
                final ActionFieldValue fieldValue = fieldValues[ index ];
                preGenerateSetMethodCallParameterValue( fieldValue,
                                                        gctx );
                generateModifyMethodSeparator( gctx,
View Full Code Here

TOP

Related Classes of org.drools.workbench.models.commons.backend.rule.context.RHSGeneratorContext

Copyright © 2018 www.massapicom. 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.