Package org.drools.compiler.lang.api
Interface AbstractClassTypeDeclarationBuilder<T extends BaseDescr>
-
- All Superinterfaces:
DescrBuilder<PackageDescrBuilder,T>
- All Known Subinterfaces:
EnumDeclarationDescrBuilder
,TypeDeclarationDescrBuilder
- All Known Implementing Classes:
EnumDeclarationDescrBuilderImpl
,TypeDeclarationDescrBuilderImpl
public interface AbstractClassTypeDeclarationBuilder<T extends BaseDescr> extends DescrBuilder<PackageDescrBuilder,T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FieldDescrBuilder<AbstractClassTypeDeclarationBuilder<T>>
newField(String name)
Adds a field to this type declaration-
Methods inherited from interface org.drools.compiler.lang.api.DescrBuilder
end, endCharacter, endLocation, getDescr, startCharacter, startLocation
-
-
-
-
Method Detail
-
newField
FieldDescrBuilder<AbstractClassTypeDeclarationBuilder<T>> newField(String name)
Adds a field to this type declaration- Parameters:
name
- the name of the field- Returns:
- a descriptor builder for the field
-
-