Package org.drools.compiler.lang.api
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 TypeDeclarationDescrBuilder
name(String type)
Defines the type nameTypeDeclarationDescrBuilder
setTrait(boolean trait)
TypeDeclarationDescrBuilder
superType(String type)
Defines the super type of this type.-
Methods inherited from interface org.drools.compiler.lang.api.AbstractClassTypeDeclarationBuilder
newField
-
Methods inherited from interface org.drools.compiler.lang.api.AnnotatedDescrBuilder
newAnnotation
-
Methods inherited from interface org.drools.compiler.lang.api.DescrBuilder
end, endCharacter, endLocation, getDescr, startCharacter, startLocation
-
-
-
-
Method Detail
-
name
TypeDeclarationDescrBuilder name(String type)
Defines the type name- Parameters:
type
- the type name- Returns:
- itself
-
superType
TypeDeclarationDescrBuilder superType(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)
-
-