Module com.wyu4.snowberryjam
Class Not
java.lang.Object
com.wyu4.snowberryjam.compiler.data.values.ValueHolder
com.wyu4.snowberryjam.compiler.data.values.InteractiveValueHolder
com.wyu4.snowberryjam.compiler.data.values.conditional.ConditionalHolder
com.wyu4.snowberryjam.compiler.data.values.conditional.Not
Conditional Holder that inverts a value
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.wyu4.snowberryjam.compiler.data.values.conditional.ConditionalHolder
bothTypesAre, getState, getType, notEmptyMethods 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, getPointer, getSize, getString, isType, superEquals
-
Constructor Details
-
Not
public Not(com.fasterxml.jackson.databind.JsonNode node) Create a newNOTinverter- Parameters:
node- TheJsonNodeto refer
-
-
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 classConditionalHolder- Returns:
falseif value A istrue(inverts value A). When value A is numerical,falseif value A is greater than 0.- Throws:
IllegalArgumentException- Value A has an unsupported type (not aBooleanor aDouble)- See Also:
-
getId
Description copied from class:ValueHolderGet the ID of the value holder- Overrides:
getIdin classValueHolder- Returns:
SourceId.NOT
-
toString
- Overrides:
toStringin classConditionalHolder
-