- java.lang.Object
-
- org.mal_lang.langspec.builders.VariableBuilder
-
-
Constructor Summary
Constructors Constructor Description VariableBuilder(String name, StepExpressionBuilder stepExpression)Constructs a newVariableBuilderobject.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VariableBuilderfromJson(JsonObject jsonVariable)Creates a newVariableBuilderfrom aJsonObject.StringgetName()Returns the name of thisVariableBuilderobject.StepExpressionBuildergetStepExpression()Returns the step expression of thisVariableBuilderobject.
-
-
-
Constructor Detail
-
VariableBuilder
public VariableBuilder(String name, StepExpressionBuilder stepExpression)
Constructs a newVariableBuilderobject.- Parameters:
name- the name of the variablestepExpression- the step expression of the variable- Throws:
NullPointerException- ifnameorstepExpressionisnullIllegalArgumentException- ifnameis not a valid identifier- Since:
- 1.0.0
-
-
Method Detail
-
getName
public String getName()
Returns the name of thisVariableBuilderobject.- Returns:
- the name of this
VariableBuilderobject - Since:
- 1.0.0
-
getStepExpression
public StepExpressionBuilder getStepExpression()
Returns the step expression of thisVariableBuilderobject.- Returns:
- the step expression of this
VariableBuilderobject - Since:
- 1.0.0
-
fromJson
public static VariableBuilder fromJson(JsonObject jsonVariable)
Creates a newVariableBuilderfrom aJsonObject.- Parameters:
jsonVariable- theJsonObject- Returns:
- a new
VariableBuilderfrom aJsonObject - Throws:
NullPointerException- ifjsonVariableisnull- Since:
- 1.0.0
-
-