Package org.drools.drl.ast.dsl
Interface TypeDeclarationDescrBuilder
-
- All Superinterfaces:
AbstractClassTypeDeclarationBuilder<TypeDeclarationDescr>,AnnotatedDescrBuilder<TypeDeclarationDescrBuilder>,DescrBuilder<PackageDescrBuilder,TypeDeclarationDescr>
- All Known Implementing Classes:
TypeDeclarationDescrBuilderImpl
public interface TypeDeclarationDescrBuilder extends AnnotatedDescrBuilder<TypeDeclarationDescrBuilder>, AbstractClassTypeDeclarationBuilder<TypeDeclarationDescr>
A descriptor builder for declared types
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypeDeclarationDescrBuildername(java.lang.String type)Defines the type nameTypeDeclarationDescrBuildersetTrait(boolean trait)TypeDeclarationDescrBuildersuperType(java.lang.String type)Defines the super type of this type.-
Methods inherited from interface org.drools.drl.ast.dsl.AbstractClassTypeDeclarationBuilder
newField
-
Methods inherited from interface org.drools.drl.ast.dsl.AnnotatedDescrBuilder
newAnnotation
-
Methods inherited from interface org.drools.drl.ast.dsl.DescrBuilder
end, endCharacter, endLocation, getDescr, startCharacter, startLocation
-
-
-
-
Method Detail
-
name
TypeDeclarationDescrBuilder name(java.lang.String type)
Defines the type name- Parameters:
type- the type name- Returns:
- itself
-
superType
TypeDeclarationDescrBuilder superType(java.lang.String type)
Defines the super type of this type. For POJOs, this is the super class it will extend- Parameters:
type- the super type for this type- Returns:
- itself
-
setTrait
TypeDeclarationDescrBuilder setTrait(boolean trait)
-
-