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
Modifier and TypeMethodDescriptionDefines the type namesetTrait(boolean trait) Defines the super type of this type.Methods inherited from interface org.drools.drl.ast.dsl.AbstractClassTypeDeclarationBuilder
newFieldMethods inherited from interface org.drools.drl.ast.dsl.AnnotatedDescrBuilder
newAnnotationMethods inherited from interface org.drools.drl.ast.dsl.DescrBuilder
end, endCharacter, endLocation, getDescr, getParent, startCharacter, startLocation
-
Method Details
-
name
Defines the type name- Parameters:
type- the type name- Returns:
- itself
-
superType
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
-