Module com.wyu4.snowberryjam
Class And
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.And
Conditional Holder that handles
AND operations.-
Constructor Summary
ConstructorsConstructorDescriptionAnd(com.fasterxml.jackson.databind.JsonNode node) Create a newANDoperation -
Method Summary
Methods inherited from class com.wyu4.snowberryjam.compiler.data.values.conditional.ConditionalHolder
bothTypesAre, getType, getValue, 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
-
And
public And(com.fasterxml.jackson.databind.JsonNode node) Create a newANDoperation- Parameters:
node- TheJsonNodeto refer
-
-
Method Details
-
getState
Description copied from class:ConditionalHolderGet the state of the condition- Overrides:
getStatein classConditionalHolder- Returns:
trueif values A and B aretrue. If values are numerical,trueif both values are greater than 0. If values areString,trueif both strings are not empty. Otherwise,trueif both pointers are not empty.- See Also:
-
getId
Description copied from class:ValueHolderGet the ID of the value holder- Overrides:
getIdin classValueHolder- Returns:
SourceId.AND
-
toString
- Overrides:
toStringin classConditionalHolder
-