org.drools.lang.api.impl.DeclareDescrBuilderImpl Maven / Gradle / Ivy
package org.drools.lang.api.impl;
import org.drools.lang.api.DeclareDescrBuilder;
import org.drools.lang.api.EntryPointDeclarationDescrBuilder;
import org.drools.lang.api.PackageDescrBuilder;
import org.drools.lang.api.TypeDeclarationDescrBuilder;
import org.drools.lang.descr.PackageDescr;
public class DeclareDescrBuilderImpl extends BaseDescrBuilderImpl
implements
DeclareDescrBuilder {
protected DeclareDescrBuilderImpl( PackageDescrBuilder parent ) {
super( parent, parent.getDescr() );
}
public EntryPointDeclarationDescrBuilder entryPoint() {
EntryPointDeclarationDescrBuilder epb = new EntryPointDeclarationDescrBuilderImpl( parent);
descr.addEntryPointDeclaration( epb.getDescr() );
return epb;
}
public TypeDeclarationDescrBuilder type() {
TypeDeclarationDescrBuilder tddb = new TypeDeclarationDescrBuilderImpl( parent );
descr.addTypeDeclaration( tddb.getDescr() );
return tddb;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy