Package org.drools.drl.ast.dsl
Interface DescrBuilder<P extends DescrBuilder<?,?>,T extends BaseDescr>
- All Known Subinterfaces:
AbstractClassTypeDeclarationBuilder<T>,AccumulateDescrBuilder<P>,AccumulateImportDescrBuilder,AnnotationDescrBuilder<P>,AttributeDescrBuilder<P>,BehaviorDescrBuilder<P>,CEDescrBuilder<P,,T> CollectDescrBuilder<P>,ConditionalBranchDescrBuilder<P>,DeclareDescrBuilder,EntryPointDeclarationDescrBuilder,EnumDeclarationDescrBuilder,EnumLiteralDescrBuilder,EvalDescrBuilder<P>,FieldDescrBuilder<T>,ForallDescrBuilder<P>,FunctionDescrBuilder,GlobalDescrBuilder,GroupByDescrBuilder<P>,ImportDescrBuilder,NamedConsequenceDescrBuilder<P>,PackageDescrBuilder,PatternDescrBuilder<P>,QueryDescrBuilder,RuleDescrBuilder,SourceDescrBuilder<P>,TypeDeclarationDescrBuilder,UnitDescrBuilder,WindowDeclarationDescrBuilder
- All Known Implementing Classes:
AccumulateDescrBuilderImpl,AccumulateImportDescrBuilderImpl,AnnotationDescrBuilderImpl,AttributeDescrBuilderImpl,BaseDescrBuilderImpl,BehaviorDescrBuilderImpl,CEDescrBuilderImpl,CollectDescrBuilderImpl,ConditionalBranchDescrBuilderImpl,DeclareDescrBuilderImpl,EntryPointDeclarationDescrBuilderImpl,EnumDeclarationDescrBuilderImpl,EnumLiteralDescrBuilderImpl,EvalDescrBuilderImpl,FieldDescrBuilderImpl,ForallDescrBuilderImpl,FunctionDescrBuilderImpl,GlobalDescrBuilderImpl,GroupByDescrBuilderImpl,ImportDescrBuilderImpl,NamedConsequenceDescrBuilderImpl,PackageDescrBuilderImpl,PatternDescrBuilderImpl,QueryDescrBuilderImpl,RuleDescrBuilderImpl,SourceDescrBuilderImpl,TypeDeclarationDescrBuilderImpl,UnitDescrBuilderImpl,WindowDeclarationDescrBuilderImpl
public interface DescrBuilder<P extends DescrBuilder<?,?>,T extends BaseDescr>
A super interface for all DescrBuilders.
-
Method Summary
Modifier and TypeMethodDescriptionend()Returns the parent container of this descr builder.endCharacter(int offset) Sets the offset of the starting character of the corresponding construction in the source file.endLocation(int line, int column) Sets the end location of the corresponding construction in the source file.getDescr()Returns the descriptor generated by this builder.Returns the parent container of this descr builder.startCharacter(int offset) Sets the offset of the starting character of the corresponding construction in the source file.startLocation(int line, int column) Sets the start location of the corresponding construction in the source file.
-
Method Details
-
startLocation
Sets the start location of the corresponding construction in the source file.- Parameters:
line-column-- Returns:
- itself, in order to be used as a fluent API
-
endLocation
Sets the end location of the corresponding construction in the source file.- Parameters:
line-column-- Returns:
- itself, in order to be used as a fluent API
-
startCharacter
Sets the offset of the starting character of the corresponding construction in the source file.- Parameters:
offset- the offset of the first character of this construction inside the source file, relative to the start.- Returns:
- itself, in order to be used as a fluent API
-
endCharacter
Sets the offset of the starting character of the corresponding construction in the source file.- Parameters:
offset- the offset of the first character of this construction inside the source file, relative to the start.- Returns:
- itself, in order to be used as a fluent API
-
getDescr
T getDescr()Returns the descriptor generated by this builder.- Returns:
-
end
P end()Returns the parent container of this descr builder. Example: ruleDescrBuilder.end() will return the PackageDescrBuilder as that is its parent container.- Returns:
-
getParent
P getParent()Returns the parent container of this descr builder. Example: ruleDescrBuilder.getParent() will return the PackageDescrBuilder as that is its parent container without ending the current construction.- Returns:
-