org.drools.compiler.lang.api.impl.EntryPointDeclarationDescrBuilderImpl Maven / Gradle / Ivy
package org.drools.compiler.lang.api.impl;
import org.drools.compiler.lang.api.PackageDescrBuilder;
import org.drools.compiler.lang.api.AnnotationDescrBuilder;
import org.drools.compiler.lang.api.EntryPointDeclarationDescrBuilder;
import org.drools.compiler.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