Module com.wyu4.snowberryjam
Class WithUpdatedElement
java.lang.Object
com.wyu4.snowberryjam.compiler.data.values.ValueHolder
com.wyu4.snowberryjam.compiler.data.values.InteractiveValueHolder
com.wyu4.snowberryjam.compiler.data.values.iteration.ArrayHolder
com.wyu4.snowberryjam.compiler.data.values.iteration.WithUpdatedElement
Array Holder that returns an array with a modified element
-
Constructor Summary
ConstructorsConstructorDescriptionWithUpdatedElement(com.fasterxml.jackson.databind.JsonNode node) Create a new With-Updated-Element -
Method Summary
Methods inherited from class com.wyu4.snowberryjam.compiler.data.values.iteration.ArrayHolder
getI, getValidIndexMethods 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, notEmpty, superEquals
-
Constructor Details
-
WithUpdatedElement
public WithUpdatedElement(com.fasterxml.jackson.databind.JsonNode node) Create a new With-Updated-Element- 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 classValueHolder- Returns:
- The array of value A with the element at value I swapped out for value B
- Throws:
ArrayIndexOutOfBoundsException- Value I is greater than the array size of value A
-
getId
Description copied from class:ValueHolderGet the ID of the value holder- Overrides:
getIdin classValueHolder- Returns:
SourceId.WITH_UPDATED_ELEMENT
-
getType
Description copied from class:ValueHolderGet the type being pointed to- Overrides:
getTypein classArrayHolder- Returns:
- The class type
- See Also:
-
toString
- Overrides:
toStringin classArrayHolder
-