Module com.wyu4.snowberryjam
Class ElementAtIndex
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.ElementAtIndex
Array Holder that handles element search given the index
-
Constructor Summary
ConstructorsConstructorDescriptionElementAtIndex(com.fasterxml.jackson.databind.JsonNode node) Create a new Element-At-Index -
Method Summary
Methods inherited from class com.wyu4.snowberryjam.compiler.data.values.iteration.ArrayHolder
getI, getType, 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
-
ElementAtIndex
public ElementAtIndex(com.fasterxml.jackson.databind.JsonNode node) Create a new Element-At-Index- 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 element at index I in the array of value A
- 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.ELEMENT_AT_INDEX
-
toString
- Overrides:
toStringin classArrayHolder
-