Module com.wyu4.snowberryjam
Class ArithmeticHolder
java.lang.Object
com.wyu4.snowberryjam.compiler.data.values.ValueHolder
com.wyu4.snowberryjam.compiler.data.values.InteractiveValueHolder
com.wyu4.snowberryjam.compiler.data.values.math.ArithmeticHolder
A default unset arithmetic holder. This handles any math operations
-
Constructor Summary
ConstructorsConstructorDescriptionArithmeticHolder(com.fasterxml.jackson.databind.JsonNode node) Create a new Arithmetic HolderCreate a new Arithmetic Holder -
Method Summary
Methods inherited from class com.wyu4.snowberryjam.compiler.data.values.InteractiveValueHolder
getA, getBMethods inherited from class com.wyu4.snowberryjam.compiler.data.values.ValueHolder
checkValueIsConditional, equals, fromNode, getArray, getId, getPointer, getSize, getString, getType, isType, superEquals
-
Constructor Details
-
ArithmeticHolder
public ArithmeticHolder(com.fasterxml.jackson.databind.JsonNode node) Create a new Arithmetic Holder- Parameters:
node- TheJsonNodeto refer
-
ArithmeticHolder
Create a new Arithmetic Holder- Parameters:
a- Value Ab- Value B
-
-
Method Details
-
getValue
Description copied from class:ValueHolderGet the value being pointed to casted as anObject. The contents being returned by this method are mutable.- Overrides:
getValuein classValueHolder- Returns:
- The value being pointed to, in its current state.
-
notEmpty
public boolean notEmpty()Description copied from class:ValueHolderCheck if this holder doesn't point to null- Overrides:
notEmptyin classValueHolder- Returns:
trueif this points to a value,falseif it points tonull
-
toString
- Overrides:
toStringin classValueHolder
-