- 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 TtcBinaryOperationfromJson(JsonObject jsonTtcBinaryOperation)Creates a newTtcBinaryOperationfrom aJsonObject.TtcExpressiongetLhs()Returns the left-hand side of thisTtcBinaryOperationobject.TtcExpressiongetRhs()Returns the right-hand side of thisTtcBinaryOperationobject.-
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 thisTtcBinaryOperationobject.- Returns:
- the left-hand side of this
TtcBinaryOperationobject - Since:
- 1.0.0
-
getRhs
public TtcExpression getRhs()
Returns the right-hand side of thisTtcBinaryOperationobject.- Returns:
- the right-hand side of this
TtcBinaryOperationobject - Since:
- 1.0.0
-
fromJson
public static TtcBinaryOperation fromJson(JsonObject jsonTtcBinaryOperation)
Creates a newTtcBinaryOperationfrom aJsonObject.- Parameters:
jsonTtcBinaryOperation- theJsonObject- Returns:
- a new
TtcBinaryOperation - Throws:
NullPointerException- ifjsonTtcBinaryOperationisnull- Since:
- 1.0.0
-
-