Package org.drools.workbench.models.datamodel.rule.visitors

Examples of org.drools.workbench.models.datamodel.rule.visitors.ToStringExpressionVisitor


                throw new IllegalStateException( "Unsupported Pattern: " + subPattern.getClass().getName() );
            }
        }

        private void renderExpression( final ExpressionFormLine expression ) {
            final ToStringExpressionVisitor visitor = new ToStringExpressionVisitor( expression.getBinding(),
                                                                                     constraintValueBuilder );
            buf.append( expression.getText( visitor ) );
        }
View Full Code Here


                assertConstraintValue( constr );

                if ( isConstraintComplete( constr ) ) {
                    if ( constr instanceof SingleFieldConstraintEBLeftSide ) {
                        final SingleFieldConstraintEBLeftSide sfcexp = ( (SingleFieldConstraintEBLeftSide) constr );
                        final ToStringExpressionVisitor visitor = new ToStringExpressionVisitor( sfcexp.getExpressionLeftSide().getBinding(),
                                                                                                 constraintValueBuilder );
                        buf.append( sfcexp.getExpressionLeftSide().getText( visitor ) );
                    } else {
                        SingleFieldConstraint parent = (SingleFieldConstraint) constr.getParent();
                        StringBuilder parentBuf = new StringBuilder();
View Full Code Here

        protected void buildExpressionFieldValue( final ExpressionFormLine expression,
                                                  final StringBuilder buf ) {
            if ( expression != null ) {
                buf.append( " " );
                final ToStringExpressionVisitor visitor = new ToStringExpressionVisitor( expression.getBinding(),
                                                                                         constraintValueBuilder );
                buf.append( expression.getText( visitor ) );
                buf.append( " " );
            }
        }
View Full Code Here

                ab.add( new ExpressionBuilder( getModeller(),
                                               getEventBus(),
                                               con.getExpressionLeftSide() ) );
            } else {
                final DRLConstraintValueBuilder constraintValueBuilder = DRLConstraintValueBuilder.getBuilder( getRuleDialect() );
                final ToStringExpressionVisitor visitor = new ToStringExpressionVisitor( con.getExpressionLeftSide().getBinding(),
                                                                                         constraintValueBuilder );
                ab.add( new SmallLabel( con.getExpressionLeftSide().getText( visitor ) ) );
            }
        } else {
            ab.add( new ExpressionBuilder( getModeller(),
View Full Code Here

                ab.add( new ExpressionBuilder( getModeller(),
                                               getEventBus(),
                                               con.getExpressionLeftSide() ) );
            } else {
                final DRLConstraintValueBuilder constraintValueBuilder = DRLConstraintValueBuilder.getBuilder( getRuleDialect() );
                final ToStringExpressionVisitor visitor = new ToStringExpressionVisitor( con.getExpressionLeftSide().getBinding(),
                                                                                         constraintValueBuilder );
                ab.add( new SmallLabel( con.getExpressionLeftSide().getText( visitor ) ) );
            }
        } else {
            ab.add( new ExpressionBuilder( getModeller(),
View Full Code Here

TOP

Related Classes of org.drools.workbench.models.datamodel.rule.visitors.ToStringExpressionVisitor

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.