- java.lang.Object
-
- org.mal_lang.langspec.builders.VariableBuilder
-
-
Constructor Summary
Constructors Constructor Description VariableBuilder(String name, StepExpressionBuilder stepExpression)
Constructs a newVariableBuilder
object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VariableBuilder
fromJson(JsonObject jsonVariable)
Creates a newVariableBuilder
from aJsonObject
.String
getName()
Returns the name of thisVariableBuilder
object.StepExpressionBuilder
getStepExpression()
Returns the step expression of thisVariableBuilder
object.
-
-
-
Constructor Detail
-
VariableBuilder
public VariableBuilder(String name, StepExpressionBuilder stepExpression)
Constructs a newVariableBuilder
object.- Parameters:
name
- the name of the variablestepExpression
- the step expression of the variable- Throws:
NullPointerException
- ifname
orstepExpression
isnull
IllegalArgumentException
- ifname
is not a valid identifier- Since:
- 1.0.0
-
-
Method Detail
-
getName
public String getName()
Returns the name of thisVariableBuilder
object.- Returns:
- the name of this
VariableBuilder
object - Since:
- 1.0.0
-
getStepExpression
public StepExpressionBuilder getStepExpression()
Returns the step expression of thisVariableBuilder
object.- Returns:
- the step expression of this
VariableBuilder
object - Since:
- 1.0.0
-
fromJson
public static VariableBuilder fromJson(JsonObject jsonVariable)
Creates a newVariableBuilder
from aJsonObject
.- Parameters:
jsonVariable
- theJsonObject
- Returns:
- a new
VariableBuilder
from aJsonObject
- Throws:
NullPointerException
- ifjsonVariable
isnull
- Since:
- 1.0.0
-
-