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

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


                buf.append( ", \n" );
            }
        }

        private boolean doesParentHaveOutput( final RHSGeneratorContext gctx ) {
            RHSGeneratorContext parent = gctx.getParent();
            while ( parent != null ) {
                if ( parent.isHasOutput() ) {
                    return true;
                }
                parent = parent.getParent();
            }
            return false;
        }
View Full Code Here


                return;
            }
            buf.append( "@if{(" );
            buf.append( "hasRHSOutput" + gctx.getDepth() + "_" + gctx.getOffset() ).append( " && (" );
            for ( int i = 0; i < peers.size(); i++ ) {
                final RHSGeneratorContext peer = peers.get( i );
                buf.append( "hasRHSOutput" + peer.getDepth() + "_" + peer.getOffset() );
                buf.append( ( i < peers.size() - 1 ? " || " : ")" ) );
            }
            buf.append( ")}" );
            buf.append( ", \n" );
            buf.append( "@end{}" );
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

                buf.append( ", \n" );
            }
        }

        private boolean doesParentHaveOutput( final RHSGeneratorContext gctx ) {
            RHSGeneratorContext parent = gctx.getParent();
            while ( parent != null ) {
                if ( parent.isHasOutput() ) {
                    return true;
                }
                parent = parent.getParent();
            }
            return false;
        }
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.