- java.lang.Object
-
- org.mal_lang.langspec.ttc.TtcExpression
-
- org.mal_lang.langspec.ttc.TtcBinaryOperation
-
- Direct Known Subclasses:
TtcAddition
,TtcDivision
,TtcExponentiation
,TtcMultiplication
,TtcSubtraction
public abstract class TtcBinaryOperation extends TtcExpression
Immutable class representing a binary TTC operation in a MAL language.- Since:
- 1.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TtcBinaryOperation
fromJson(JsonObject jsonTtcBinaryOperation)
Creates a newTtcBinaryOperation
from aJsonObject
.TtcExpression
getLhs()
Returns the left-hand side of thisTtcBinaryOperation
object.TtcExpression
getRhs()
Returns the right-hand side of thisTtcBinaryOperation
object.-
Methods inherited from class org.mal_lang.langspec.ttc.TtcExpression
getMeanProbability, getMeanTtc, toJson
-
-
-
-
Method Detail
-
getLhs
public TtcExpression getLhs()
Returns the left-hand side of thisTtcBinaryOperation
object.- Returns:
- the left-hand side of this
TtcBinaryOperation
object - Since:
- 1.0.0
-
getRhs
public TtcExpression getRhs()
Returns the right-hand side of thisTtcBinaryOperation
object.- Returns:
- the right-hand side of this
TtcBinaryOperation
object - Since:
- 1.0.0
-
fromJson
public static TtcBinaryOperation fromJson(JsonObject jsonTtcBinaryOperation)
Creates a newTtcBinaryOperation
from aJsonObject
.- Parameters:
jsonTtcBinaryOperation
- theJsonObject
- Returns:
- a new
TtcBinaryOperation
- Throws:
NullPointerException
- ifjsonTtcBinaryOperation
isnull
- Since:
- 1.0.0
-
-