All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.drools.lang.api.impl.EntryPointDeclarationDescrBuilderImpl Maven / Gradle / Ivy

There is a newer version: 10.0.0
Show newest version
package org.drools.lang.api.impl;

import org.drools.lang.api.AnnotationDescrBuilder;
import org.drools.lang.api.EntryPointDeclarationDescrBuilder;
import org.drools.lang.api.PackageDescrBuilder;
import org.drools.lang.descr.EntryPointDeclarationDescr;

public class EntryPointDeclarationDescrBuilderImpl extends BaseDescrBuilderImpl
    implements
    EntryPointDeclarationDescrBuilder {

    protected EntryPointDeclarationDescrBuilderImpl(PackageDescrBuilder parent) {
        super( parent, new EntryPointDeclarationDescr() );
    }

    public EntryPointDeclarationDescrBuilder entryPointId( String id ) {
        descr.setEntryPointId( id );
        return this;
    }

    public AnnotationDescrBuilder newAnnotation( String name ) {
        AnnotationDescrBuilder annotation = new AnnotationDescrBuilderImpl( this, name );
        descr.addAnnotation( annotation.getDescr() );
        return annotation;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy