Module org.mal_lang.langspec
Class StepBinaryOperationBuilder
- java.lang.Object
-
- org.mal_lang.langspec.builders.step.StepExpressionBuilder
-
- org.mal_lang.langspec.builders.step.StepBinaryOperationBuilder
-
- Direct Known Subclasses:
StepCollectBuilder
,StepDifferenceBuilder
,StepIntersectionBuilder
,StepUnionBuilder
public abstract class StepBinaryOperationBuilder extends StepExpressionBuilder
A builder for creatingStepBinaryOperation
objects.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StepBinaryOperationBuilder(StepExpressionBuilder lhs, StepExpressionBuilder rhs)
Constructs a newStepBinaryOperationBuilder
object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StepBinaryOperationBuilder
fromJson(JsonObject jsonStepBinaryOperation)
Creates a newStepBinaryOperationBuilder
from aJsonObject
.StepExpressionBuilder
getLhs()
Returns the left-hand side of thisStepBinaryOperationBuilder
object.StepExpressionBuilder
getRhs()
Returns the right-hand side of thisStepBinaryOperationBuilder
object.-
Methods inherited from class org.mal_lang.langspec.builders.step.StepExpressionBuilder
getTarget
-
-
-
-
Constructor Detail
-
StepBinaryOperationBuilder
protected StepBinaryOperationBuilder(StepExpressionBuilder lhs, StepExpressionBuilder rhs)
Constructs a newStepBinaryOperationBuilder
object.- Parameters:
lhs
- the left-hand side of the binary operationrhs
- the right-hand side of the binary operation- Throws:
NullPointerException
- iflhs
orrhs
isnull
- Since:
- 1.0.0
-
-
Method Detail
-
getLhs
public StepExpressionBuilder getLhs()
Returns the left-hand side of thisStepBinaryOperationBuilder
object.- Returns:
- the left-hand side of this
StepBinaryOperationBuilder
object - Since:
- 1.0.0
-
getRhs
public StepExpressionBuilder getRhs()
Returns the right-hand side of thisStepBinaryOperationBuilder
object.- Returns:
- the right-hand side of this
StepBinaryOperationBuilder
object - Since:
- 1.0.0
-
fromJson
public static StepBinaryOperationBuilder fromJson(JsonObject jsonStepBinaryOperation)
Creates a newStepBinaryOperationBuilder
from aJsonObject
.- Parameters:
jsonStepBinaryOperation
- theJsonObject
- Returns:
- a new
StepBinaryOperationBuilder
- Throws:
NullPointerException
- ifjsonStepBinaryOperation
isnull
- Since:
- 1.0.0
-
-