- java.lang.Object
-
- org.mal_lang.langspec.builders.StepsBuilder
-
-
Constructor Summary
Constructors Constructor Description StepsBuilder(boolean overrides)Constructs a newStepsBuilderobject.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StepsBuilderaddStepExpression(StepExpressionBuilder stepExpression)Adds a step expression to thisStepsBuilderobject.static StepsBuilderfromJson(JsonObject jsonSteps)Creates a newStepsBuilderfrom aJsonObject.List<StepExpressionBuilder>getStepExpressions()Returns a list of all step expressions in thisStepsBuilderobject.booleanoverrides()Returns whether thisStepsBuilderobject overrides.
-
-
-
Method Detail
-
overrides
public boolean overrides()
Returns whether thisStepsBuilderobject overrides.- Returns:
- whether this
StepsBuilderobject overrides - Since:
- 1.0.0
-
getStepExpressions
public List<StepExpressionBuilder> getStepExpressions()
Returns a list of all step expressions in thisStepsBuilderobject.- Returns:
- a list of all step expressions in this
StepsBuilderobject - Since:
- 1.0.0
-
addStepExpression
public StepsBuilder addStepExpression(StepExpressionBuilder stepExpression)
Adds a step expression to thisStepsBuilderobject.- Parameters:
stepExpression- the step expression to add- Returns:
- this
StepsBuilderobject - Throws:
NullPointerException- ifstepExpressionisnull- Since:
- 1.0.0
-
fromJson
public static StepsBuilder fromJson(JsonObject jsonSteps)
Creates a newStepsBuilderfrom aJsonObject.- Parameters:
jsonSteps- theJsonObject- Returns:
- a new
StepsBuilder - Throws:
NullPointerException- ifjsonStepsisnull- Since:
- 1.0.0
-
-