Class ViewBuilder.ViewSubBuilder
java.lang.Object
fr.inria.rules.integraal.views.builder.ViewBuilder.ViewSubBuilder
- Enclosing class:
ViewBuilder
Sub-builder for constructing a view.
- Author:
- Florent Tornil
-
Method Summary
Modifier and TypeMethodDescriptionaddParameterSignature(String ifMissing, String mandatory, String selection) Adds a parameter signature to the view definition.addView()Finalizes the view configuration and returns to the parent builder.setPosition(String position) Sets the optional view position.Sets the query text of the view being built.
-
Method Details
-
setQuery
Sets the query text of the view being built.- Parameters:
query- the query text- Returns:
- the current sub-builder
-
addParameterSignature
public ViewBuilder.ViewSubBuilder addParameterSignature(String ifMissing, String mandatory, String selection) Adds a parameter signature to the view definition.- Parameters:
ifMissing- fallback behavior when the parameter is missingmandatory- mandatory flagselection- selection behavior- Returns:
- the current sub-builder
-
setPosition
Sets the optional view position.- Parameters:
position- the position hint- Returns:
- the current sub-builder
-
addView
Finalizes the view configuration and returns to the parent builder.- Returns:
- the parent ViewBuilder
-