Package org.drools.drl.ast.dsl.impl
Class BaseDescrBuilderImpl<P extends DescrBuilder<?,? extends BaseDescr>,T extends BaseDescr>
java.lang.Object
org.drools.drl.ast.dsl.impl.BaseDescrBuilderImpl<P,T>
- All Implemented Interfaces:
DescrBuilder<P,T>
- Direct Known Subclasses:
AccumulateDescrBuilderImpl,AccumulateImportDescrBuilderImpl,AnnotationDescrBuilderImpl,AttributeDescrBuilderImpl,BehaviorDescrBuilderImpl,CEDescrBuilderImpl,CollectDescrBuilderImpl,ConditionalBranchDescrBuilderImpl,DeclareDescrBuilderImpl,EntryPointDeclarationDescrBuilderImpl,EnumDeclarationDescrBuilderImpl,EnumLiteralDescrBuilderImpl,EvalDescrBuilderImpl,FieldDescrBuilderImpl,ForallDescrBuilderImpl,FunctionDescrBuilderImpl,GlobalDescrBuilderImpl,ImportDescrBuilderImpl,NamedConsequenceDescrBuilderImpl,PackageDescrBuilderImpl,PatternDescrBuilderImpl,QueryDescrBuilderImpl,RuleDescrBuilderImpl,SourceDescrBuilderImpl,TypeDeclarationDescrBuilderImpl,UnitDescrBuilderImpl,WindowDeclarationDescrBuilderImpl
public class BaseDescrBuilderImpl<P extends DescrBuilder<?,? extends BaseDescr>,T extends BaseDescr>
extends Object
implements DescrBuilder<P,T>
A base class for all DescrBuilders
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.
-
Field Details
-
descr
-
parent
-
-
Constructor Details
-
BaseDescrBuilderImpl
-
-
Method Details
-
startLocation
Description copied from interface:DescrBuilderSets the start location of the corresponding construction in the source file.- Specified by:
startLocationin interfaceDescrBuilder<P extends DescrBuilder<?,? extends BaseDescr>, T extends BaseDescr> - Returns:
- itself, in order to be used as a fluent API
-
endLocation
Description copied from interface:DescrBuilderSets the end location of the corresponding construction in the source file.- Specified by:
endLocationin interfaceDescrBuilder<P extends DescrBuilder<?,? extends BaseDescr>, T extends BaseDescr> - Returns:
- itself, in order to be used as a fluent API
-
startCharacter
Description copied from interface:DescrBuilderSets the offset of the starting character of the corresponding construction in the source file.- Specified by:
startCharacterin interfaceDescrBuilder<P extends DescrBuilder<?,? extends BaseDescr>, T extends BaseDescr> - 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
Description copied from interface:DescrBuilderSets the offset of the starting character of the corresponding construction in the source file.- Specified by:
endCharacterin interfaceDescrBuilder<P extends DescrBuilder<?,? extends BaseDescr>, T extends BaseDescr> - 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
Description copied from interface:DescrBuilderReturns the descriptor generated by this builder.- Specified by:
getDescrin interfaceDescrBuilder<P extends DescrBuilder<?,? extends BaseDescr>, T extends BaseDescr> - Returns:
-
end
Description copied from interface:DescrBuilderReturns the parent container of this descr builder. Example: ruleDescrBuilder.end() will return the PackageDescrBuilder as that is its parent container.- Specified by:
endin interfaceDescrBuilder<P extends DescrBuilder<?,? extends BaseDescr>, T extends BaseDescr> - Returns:
-
getParent
Description copied from interface:DescrBuilderReturns 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.- Specified by:
getParentin interfaceDescrBuilder<P extends DescrBuilder<?,? extends BaseDescr>, T extends BaseDescr> - Returns:
-