Examples of DeclarationScopeResolver


Examples of org.drools.spi.DeclarationScopeResolver

                            final DialectCompiletimeRegistry dialectCompiletimeRegistry,
                            final Package pkg,
                            final Dialect defaultDialect) {
        this.buildStack = new Stack<RuleConditionElement>();

        this.declarationResolver = new DeclarationScopeResolver( pkgBuilder.getGlobals(),
                                                                 this.buildStack );
        this.declarationResolver.setPackage( pkg );
        this.ruleDescr = ruleDescr;

        if ( ruleDescr instanceof QueryDescr ) {
View Full Code Here

Examples of org.drools.spi.DeclarationScopeResolver

     * we need to fix any references to cloned declarations.
     * @param and
     */
    protected void fixClonedDeclarations(GroupElement and) {
        Stack contextStack = new Stack();
        DeclarationScopeResolver resolver = new DeclarationScopeResolver( Collections.<String, Class<?>>emptyMap(),
                                                                          contextStack );

        contextStack.push( and );
        processElement( resolver,
                        contextStack,
View Full Code Here

Examples of org.drools.spi.DeclarationScopeResolver

     * we need to fix any references to cloned declarations.
     * @param ands
     */
    private void fixClonedDeclarations(GroupElement and) {
        Stack contextStack = new Stack();
        DeclarationScopeResolver resolver = new DeclarationScopeResolver( new Map[0],
                                                                          contextStack );

        contextStack.push( and );
        processElement( resolver,
                        contextStack,
View Full Code Here

Examples of org.drools.spi.DeclarationScopeResolver

     * we need to fix any references to cloned declarations.
     * @param and
     */
    protected void fixClonedDeclarations(GroupElement and) {
        Stack contextStack = new Stack();
        DeclarationScopeResolver resolver = new DeclarationScopeResolver( Collections.<String, Class<?>>emptyMap(),
                                                                          contextStack );

        contextStack.push( and );
        processElement( resolver,
                        contextStack,
View Full Code Here

Examples of org.drools.spi.DeclarationScopeResolver

            List list[] = analysis.getBoundIdentifiers();

            // @TODO yuck, we don't want conditions for configuration :(
            if ( context instanceof RuleBuildContext ) {
                // FIXME: analysis can be null, throws an NPE
                DeclarationScopeResolver resolver = ((RuleBuildContext) context).getDeclarationResolver();
                for ( Iterator it = list[0].iterator(); it.hasNext(); ) {
                    String identifier = (String) it.next();
                    Class cls = resolver.getDeclaration(null, identifier ).getExtractor().getExtractToClass();
                    parserContext.addInput( identifier,
                                            cls );
                }
            }
View Full Code Here

Examples of org.drools.spi.DeclarationScopeResolver

     * we need to fix any references to cloned declarations.
     * @param ands
     */
    private void fixClonedDeclarations(GroupElement and) {
        Stack contextStack = new Stack();
        DeclarationScopeResolver resolver = new DeclarationScopeResolver( new Map[0],
                                                                          contextStack );

        contextStack.push( and );
        processElement( resolver,
                        contextStack,
View Full Code Here

Examples of org.drools.spi.DeclarationScopeResolver

     * we need to fix any references to cloned declarations.
     * @param ands
     */
    private void fixClonedDeclarations(GroupElement and) {
        Stack contextStack = new Stack();
        DeclarationScopeResolver resolver = new DeclarationScopeResolver( new Map[0], contextStack );

        contextStack.push( and );
        processElement( resolver, contextStack, and );
        contextStack.pop( );
    }
View Full Code Here

Examples of org.drools.spi.DeclarationScopeResolver

            List list[] = analysis.getBoundIdentifiers();

            // @TODO yuck, we don't want conditions for configuration :(
            if ( context instanceof RuleBuildContext ) {
                // FIXME: analysis can be null, throws an NPE
                DeclarationScopeResolver resolver = ((RuleBuildContext) context).getDeclarationResolver();
                for ( Iterator it = list[0].iterator(); it.hasNext(); ) {
                    String identifier = (String) it.next();
                    Class cls = resolver.getDeclarationClasses( ((RuleBuildContext)context).getRule() ).get( identifier );
                    parserContext.addInput( identifier,
                                            cls );
                }
            }
View Full Code Here

Examples of org.drools.spi.DeclarationScopeResolver

     * we need to fix any references to cloned declarations.
     * @param ands
     */
    private void fixClonedDeclarations(GroupElement and) {
        Stack contextStack = new Stack();
        DeclarationScopeResolver resolver = new DeclarationScopeResolver( new Map[0],
                                                                          contextStack );

        contextStack.push( and );
        processElement( resolver,
                        contextStack,
View Full Code Here

Examples of org.drools.spi.DeclarationScopeResolver

     * we need to fix any references to cloned declarations.
     * @param ands
     */
    private void fixClonedDeclarations(GroupElement and) {
        Stack contextStack = new Stack();
        DeclarationScopeResolver resolver = new DeclarationScopeResolver( Collections.<String, Class<?>>emptyMap(),
                                                                          contextStack );

        contextStack.push( and );
        processElement( resolver,
                        contextStack,
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.