Examples of processAnnotations()


Examples of org.drools.compiler.lang.api.FieldDescrBuilder.processAnnotations()

            while ( input.LA( 1 ) == DRL5Lexer.AT ) {
                // annotation*
                annotation( field );
                if ( state.failed ) return;
            }
            field.processAnnotations();

            if ( input.LA( 1 ) == DRL5Lexer.SEMICOLON ) {
                match( input,
                       DRL5Lexer.SEMICOLON,
                       null,
View Full Code Here

Examples of org.drools.compiler.lang.api.FieldDescrBuilder.processAnnotations()

            while ( input.LA( 1 ) == DRL6Lexer.AT ) {
                // annotation*
                annotation( field );
                if ( state.failed ) return;
            }
            field.processAnnotations();

            if ( input.LA( 1 ) == DRL6Lexer.SEMICOLON ) {
                match( input,
                       DRL6Lexer.SEMICOLON,
                       null,
View Full Code Here

Examples of org.drools.compiler.lang.api.FieldDescrBuilder.processAnnotations()

                // annotation*
                annotation(field);
                if (state.failed)
                    return;
            }
            field.processAnnotations();

            if (input.LA(1) == DRL6Lexer.SEMICOLON) {
                match(input,
                        DRL6Lexer.SEMICOLON,
                        null,
View Full Code Here

Examples of org.drools.compiler.lang.api.FieldDescrBuilder.processAnnotations()

            while ( input.LA( 1 ) == DRL5Lexer.AT ) {
                // annotation*
                annotation( field );
                if ( state.failed ) return;
            }
            field.processAnnotations();

            if ( input.LA( 1 ) == DRL5Lexer.SEMICOLON ) {
                match( input,
                       DRL5Lexer.SEMICOLON,
                       null,
View Full Code Here

Examples of org.drools.lang.api.FieldDescrBuilder.processAnnotations()

            while ( input.LA( 1 ) == DRLLexer.AT ) {
                // annotation*
                annotation( field );
                if ( state.failed ) return;
            }
            field.processAnnotations();

            if ( input.LA( 1 ) == DRLLexer.SEMICOLON ) {
                match( input,
                       DRLLexer.SEMICOLON,
                       null,
View Full Code Here

Examples of org.drools.planner.core.domain.entity.PlanningEntityDescriptor.processAnnotations()

        }
        for (Class<?> planningEntityClass : planningEntityClassSet) {
            PlanningEntityDescriptor planningEntityDescriptor = new PlanningEntityDescriptor(
                    solutionDescriptor, planningEntityClass);
            solutionDescriptor.addPlanningEntityDescriptor(planningEntityDescriptor);
            planningEntityDescriptor.processAnnotations();
        }
        return solutionDescriptor;
    }

    public void inherit(SolverConfig inheritedConfig) {
View Full Code Here

Examples of org.drools.planner.core.domain.entity.PlanningEntityDescriptor.processAnnotations()

public class TestdataChainedEntity extends TestdataObject implements TestdataChainedObject {

    public static PlanningEntityDescriptor buildEntityDescriptor() {
        PlanningEntityDescriptor entityDescriptor = new PlanningEntityDescriptor(
                mock(SolutionDescriptor.class), TestdataChainedEntity.class);
        entityDescriptor.processAnnotations();
        return entityDescriptor;
    }

    private TestdataChainedObject chainedObject;
View Full Code Here

Examples of org.drools.planner.core.domain.entity.PlanningEntityDescriptor.processAnnotations()

public class TestdataEntity extends TestdataObject {

    public static PlanningEntityDescriptor buildEntityDescriptor() {
        PlanningEntityDescriptor entityDescriptor = new PlanningEntityDescriptor(
                mock(SolutionDescriptor.class), TestdataEntity.class);
        entityDescriptor.processAnnotations();
        return entityDescriptor;
    }

    private TestdataValue value;
View Full Code Here

Examples of org.drools.planner.core.domain.solution.SolutionDescriptor.processAnnotations()

    protected SolutionDescriptor buildSolutionDescriptor() {
        if (solutionClass == null) {
            throw new IllegalArgumentException("Configure a <solutionClass> in the solver configuration.");
        }
        SolutionDescriptor solutionDescriptor = new SolutionDescriptor(solutionClass);
        solutionDescriptor.processAnnotations();
        if (CollectionUtils.isEmpty(planningEntityClassSet)) {
            throw new IllegalArgumentException(
                    "Configure at least 1 <planningEntityClass> in the solver configuration.");
        }
        for (Class<?> planningEntityClass : planningEntityClassSet) {
View Full Code Here

Examples of org.drools.planner.core.domain.variable.DependentPlanningVariableDescriptor.processAnnotations()

                }
                DependentPlanningVariableDescriptor dependentPlanningVariableDescriptor
                        = new DependentPlanningVariableDescriptor(this, propertyDescriptor);
                dependentPlanningVariableDescriptorMap.put(propertyDescriptor.getName(),
                        dependentPlanningVariableDescriptor);
                dependentPlanningVariableDescriptor.processAnnotations();
            }
        }
        if (noPlanningVariableAnnotation) {
            throw new IllegalStateException("The planningEntityClass (" + planningEntityClass
                    + ") should have at least 1 getter with a PlanningVariable annotation.");
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.